Nice! "KillMode=mixed" is important here, though.

Regarding "reload", in /lib/lsb/init-functions.d/40-systemd included
from /lib/lsb/init-functions included from /etc/init.d/lighttpd there is
this code:

if [ "$(systemctl -p CanReload show $service 2>/dev/null)" = "CanReload=no" ] 
&& [ "${1:-}" = "reload" ]; then
  _use_systemctl=0
fi

Since `sudo systemctl -p CanReload show lighttpd.service` returns
"CanReload=no", "reload" action is not handled by systemd and the code
from /etc/init.d/lighttpd is executed. I believe, this should not happen
and the only way to properly fix it is to remove "reload" from
/etc/init.d/lighttpd completely.

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

Title:
  reload does not shut down lighttpd gracefully

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

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

Reply via email to