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