This commit is contained in:
Roland Gruber 2015-06-29 18:58:53 +00:00
parent e69b329c50
commit 6b42978126
2 changed files with 12 additions and 12 deletions

View File

@ -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

View File

@ -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