support systemd

This commit is contained in:
Roland Gruber 2015-05-10 08:52:23 +00:00
parent 57045892e9
commit 48948dab4a
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ if [ "$1" = "configure" ]; then
elif [ -x /usr/sbin/service ]; then
/usr/sbin/service $server reload
elif [ -x /bin/systemctl ]; then
/bin/systemctl ${server}.service reload
/bin/systemctl reload ${server}.service
fi
done
fi

View File

@ -42,7 +42,7 @@ if [ -f /usr/share/debconf/confmodule ]; then
elif [ -x /usr/sbin/service ]; then
/usr/sbin/service $server reload
elif [ -x /bin/systemctl ]; then
/bin/systemctl ${server}.service reload
/bin/systemctl reload ${server}.service
fi
done
fi