[arch-general] [PATCH 1/1] systemd: restart services after update
Christian Hesse
list at eworm.de
Wed Jun 11 06:15:18 EDT 2014
From: Christian Hesse <mail at eworm.de>
---
systemd.install | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/systemd.install b/systemd.install
index 5c370f7..11e97bc 100644
--- a/systemd.install
+++ b/systemd.install
@@ -27,6 +27,12 @@ maybe_reexec() {
if sd_booted; then
systemctl --system daemon-reexec
+
+ for SERVICE in systemd-journald systemd-logind systemd-machined systemd-networkd systemd-resolved systemd-udevd; do
+ if systemctl is-active ${SERVICE} >/dev/null; then
+ systemctl restart ${SERVICE}
+ fi
+ done
fi
}
--
2.0.0
More information about the arch-general
mailing list