support systemd
This commit is contained in:
parent
b0664b7131
commit
57045892e9
|
@ -99,9 +99,11 @@ if [ "$1" = "configure" ]; then
|
|||
for server in $restart; do
|
||||
server=${server%,}
|
||||
if [ -x /usr/sbin/invoke-rc.d ]; then
|
||||
invoke-rc.d $server reload
|
||||
else
|
||||
/etc/init.d/$server reload
|
||||
/usr/sbin/invoke-rc.d $server reload
|
||||
elif [ -x /usr/sbin/service ]; then
|
||||
/usr/sbin/service $server reload
|
||||
elif [ -x /bin/systemctl ]; then
|
||||
/bin/systemctl ${server}.service reload
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
|
|
@ -38,9 +38,11 @@ if [ -f /usr/share/debconf/confmodule ]; then
|
|||
for server in $restart; do
|
||||
server=${server%,}
|
||||
if [ -x /usr/sbin/invoke-rc.d ]; then
|
||||
invoke-rc.d $server reload
|
||||
else
|
||||
/etc/init.d/$server reload
|
||||
/usr/sbin/invoke-rc.d $server reload
|
||||
elif [ -x /usr/sbin/service ]; then
|
||||
/usr/sbin/service $server reload
|
||||
elif [ -x /bin/systemctl ]; then
|
||||
/bin/systemctl ${server}.service reload
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue