/etc/init.d/charybdis reload does nothing due to insecure PID file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charybdis (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
On focal, I cannot reload charybdis from the init script (or from 'service' or 'systemctl'):
$ sudo SYSTEMCTL_
(...)
+ start-stop-daemon --stop --signal 1 --quiet --pidfile /var/run/
start-stop-daemon: matching only on non-root pidfile /var/run/
According to start-stop-
-p, -pidfile pid-file
(...)
Warning: using this match option with a world-writable pidfile or using it alone with a daemon that writes the pidfile as an unprivileged (non-root) user will be refused with an error (since version 1.19.3)
This can be worked around by adding an --exec match to the invocation of start-stop-daemon in do_reload() in /etc/init.