diff options
Diffstat (limited to 'autoscripts/postinst-systemd-restartnostart')
-rw-r--r-- | autoscripts/postinst-systemd-restartnostart | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/autoscripts/postinst-systemd-restartnostart b/autoscripts/postinst-systemd-restartnostart new file mode 100644 index 00000000..eb52e273 --- /dev/null +++ b/autoscripts/postinst-systemd-restartnostart @@ -0,0 +1,6 @@ +if [ -d /run/systemd/system ]; then + systemctl --system daemon-reload >/dev/null || true + if [ -n "$2" ]; then + deb-systemd-invoke try-restart #UNITFILES# >/dev/null || true + fi +fi |