diff options
Diffstat (limited to '')
-rw-r--r-- | autoscripts/postinst-systemd-start | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/autoscripts/postinst-systemd-start b/autoscripts/postinst-systemd-start new file mode 100644 index 0000000..6a24ad8 --- /dev/null +++ b/autoscripts/postinst-systemd-start @@ -0,0 +1,6 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + if [ -d /run/systemd/system ]; then + systemctl --system daemon-reload >/dev/null || true + deb-systemd-invoke start #UNITFILES# >/dev/null || true + fi +fi |