Comment 23 for bug 1707312

Revision history for this message
Vasya Pupkin (shadowlmd) wrote :

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.