Public bug reported:

On focal, I cannot reload charybdis from the init script (or from
'service' or 'systemctl'):

$ sudo SYSTEMCTL_SKIP_REDIRECT=1 bash -x /etc/init.d/charybdis reload
(...)
+ start-stop-daemon --stop --signal 1 --quiet --pidfile 
/var/run/charybdis/ircd.pid
start-stop-daemon: matching only on non-root pidfile 
/var/run/charybdis/ircd.pid is insecure

According to start-stop-daemon(8):

   -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.d/charybdis:

        start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE
--exec $DAEMON

** Affects: charybdis (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1882928

Title:
  /etc/init.d/charybdis reload does nothing due to insecure PID file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/charybdis/+bug/1882928/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to