summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@debian.org>2013-06-18 21:10:24 +0200
committerMichael Stapelberg <michael@stapelberg.de>2013-06-18 21:10:24 +0200
commit489f95b0fb549e1be284184cc82c64e697dc055c (patch)
treeaa3942b9a4f919cb8733de5b1bb13da8aface8b0
parent264fe6e5b5941d553da87416dff91fd266ecaaf6 (diff)
downloadinit-system-helpers-489f95b0fb549e1be284184cc82c64e697dc055c.tar.gz
add systemctl daemon-reload to handle the systemd-only use case
-rw-r--r--autoscripts/postinst-systemd-restart1
-rw-r--r--autoscripts/postinst-systemd-start1
2 files changed, 2 insertions, 0 deletions
diff --git a/autoscripts/postinst-systemd-restart b/autoscripts/postinst-systemd-restart
index e96bc93..1b1e7c8 100644
--- a/autoscripts/postinst-systemd-restart
+++ b/autoscripts/postinst-systemd-restart
@@ -1,3 +1,4 @@
if [ -d /run/systemd/system ]; then
+ systemctl --system daemon-reload >/dev/null || true
systemctl try-restart #UNITFILES# >/dev/null || true
fi
diff --git a/autoscripts/postinst-systemd-start b/autoscripts/postinst-systemd-start
index bf6458b..e91e213 100644
--- a/autoscripts/postinst-systemd-start
+++ b/autoscripts/postinst-systemd-start
@@ -1,3 +1,4 @@
if [ -d /run/systemd/system ]; then
+ systemctl --system daemon-reload >/dev/null || true
systemctl start #UNITFILES# >/dev/null || true
fi