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