Use invoke-rc.d to restart lighttpd as per Debian policy
This commit is contained in:
parent
8d815b7a9c
commit
5eaa62d59c
2
debian/dump1090-mutability.postinst
vendored
2
debian/dump1090-mutability.postinst
vendored
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue