Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 711454 - >=net-dns/dnsdist-1.4.0 openrc init should create a pid file
Summary: >=net-dns/dnsdist-1.4.0 openrc init should create a pid file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Andreas Schürch
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-03 22:14 UTC by regatus
Modified: 2020-07-31 08:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description regatus 2020-03-03 22:14:56 UTC
since version 1.4.0, dnsdist seems not to write a pid file anymore. this results in a "crashed" service, yet the process is running fine.

current behavior:
-----------------

# /etc/init.d/dnsdist start
 * Checking configuration file (/etc/dnsdist/dnsdist.conf) ...          [ ok ]
 * Starting dnsdist (default) ...                                       [ ok ]

# /etc/init.d/dnsdist status
 * status: crashed

# cat /run/dnsdist/dnsdist.pid
cat: /run/dnsdist/dnsdist.pid: No such file or directory

# ps fu -C dnsdist
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
dnsdist   3378  4.4  5.5 1966516 219552 ?      Ssl  23:05   0:04 /usr/bin/dnsdist --supervised -u dnsdist -g dnsdist -C /etc/dnsdist/dnsdist.conf


expected behavior:
------------------

# /etc/init.d/dnsdist start
 * Checking configuration file (/etc/dnsdist/dnsdist.conf) ...       [ ok ]
 * Starting dnsdist (default) ...                                    [ ok ]

# /etc/init.d/dnsdist status
 * status: started

# cat /run/dnsdist/dnsdist.pid
7714

# ps fu -C dnsdist
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
dnsdist   7714  4.8  5.5 1966516 217460 ?      Ssl  23:11   0:02 /usr/bin/dnsdist --supervised -u dnsdist -g dnsdist -C /etc/dnsdist/dnsdist.conf


patch for /etc/init.d/dnsdist
-----------------------------

# diff -Nur dnsdist-original dnsdist-new
--- dnsdist-original    2020-03-03 22:43:20.051038677 +0100
+++ dnsdist-new 2020-03-03 23:12:59.399693407 +0100
@@ -31,7 +31,7 @@

        ebegin "Starting dnsdist (${DNSDIST_INSTANCE})"
        start-stop-daemon --start --exec $DNSDIST --pidfile ${PIDFILE} \
-               -b -- --supervised -u ${DNSDIST_USER} -g ${DNSDIST_GROUP} \
+               -b -m -- --supervised -u ${DNSDIST_USER} -g ${DNSDIST_GROUP} \
                -C $DNSDIST_CONFFILE ${DNSDIST_OPTIONS}
        eend $?
 }
Comment 1 Andreas Schürch gentoo-dev 2020-07-31 08:18:38 UTC
This got fixed now.
Thanks for reporting, sorry for the delay!