This commit is contained in:
parent
e69b329c50
commit
6b42978126
|
@ -98,12 +98,12 @@ if [ "$1" = "configure" ]; then
|
|||
if [ "$RET" = "true" ]; then
|
||||
for server in $restart; do
|
||||
server=${server%,}
|
||||
if [ -x /usr/sbin/invoke-rc.d ]; then
|
||||
/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 reload ${server}.service
|
||||
if [ `which invoke-rc.d` ]; then
|
||||
invoke-rc.d $server reload
|
||||
elif [ `which service` ]; then
|
||||
service $server reload
|
||||
elif [ `which systemctl` ]; then
|
||||
systemctl reload ${server}.service
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
|
|
@ -37,12 +37,12 @@ if [ -f /usr/share/debconf/confmodule ]; then
|
|||
set -e
|
||||
for server in $restart; do
|
||||
server=${server%,}
|
||||
if [ -x /usr/sbin/invoke-rc.d ]; then
|
||||
/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 reload ${server}.service
|
||||
if [ `which invoke-rc.d` ]; then
|
||||
invoke-rc.d $server reload
|
||||
elif [ `which service` ]; then
|
||||
service $server reload
|
||||
elif [ `which systemctl` ]; then
|
||||
systemctl reload ${server}.service
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue