Use invoke-rc.d to restart lighttpd as per Debian policy

This commit is contained in:
Raphael Geissert 2015-08-08 13:47:05 +02:00
parent 8d815b7a9c
commit 5eaa62d59c

View file

@ -126,7 +126,7 @@ case "$1" in
if [ -e /etc/lighttpd/conf-enabled/89-dump1090.conf ]; then
if dpkg --compare-versions "$2" le "1.14"; then
echo "Restarting lighttpd.." >&2
service lighttpd restart || echo "Warning: lighttpd failed to restart." >&2
invoke-rc.d lighttpd restart || echo "Warning: lighttpd failed to restart." >&2
fi
fi
;;