Commit 1027a221 authored by Michael Biebl's avatar Michael Biebl
Browse files

Re-exec systemd and restart services at the end of postinst

parent 91c07f0d
...@@ -39,6 +39,7 @@ systemd (215-1) UNRELEASED; urgency=medium ...@@ -39,6 +39,7 @@ systemd (215-1) UNRELEASED; urgency=medium
* Set the gecos field when creating the system users. * Set the gecos field when creating the system users.
* Add systemd-bus-proxy system user so systemd-bus-proxyd can properly drop * Add systemd-bus-proxy system user so systemd-bus-proxyd can properly drop
its privileges. its privileges.
* Re-exec systemd and restart services at the end of postinst.
-- Michael Biebl <biebl@debian.org> Tue, 26 Aug 2014 12:09:10 +0200 -- Michael Biebl <biebl@debian.org> Tue, 26 Aug 2014 12:09:10 +0200
......
...@@ -33,15 +33,6 @@ if dpkg --compare-versions "$2" lt "204-1"; then ...@@ -33,15 +33,6 @@ if dpkg --compare-versions "$2" lt "204-1"; then
rm -f /var/lib/systemd/*.symlinks rm -f /var/lib/systemd/*.symlinks
fi fi
if [ -n "$2" ]; then
_systemctl daemon-reexec || true
_systemctl try-restart systemd-journald.service || true
_systemctl try-restart systemd-logind.service || true
_systemctl try-restart systemd-networkd.service || true
_systemctl try-restart systemd-resolved.service || true
_systemctl try-restart systemd-timesyncd.service || true
fi
# Do a one-time migration of the local time setting # Do a one-time migration of the local time setting
if dpkg --compare-versions "$2" lt "33-1"; then if dpkg --compare-versions "$2" lt "33-1"; then
if [ -f /etc/default/rcS ]; then if [ -f /etc/default/rcS ]; then
...@@ -139,4 +130,13 @@ if dpkg --compare-versions "$2" ge "204"; then ...@@ -139,4 +130,13 @@ if dpkg --compare-versions "$2" ge "204"; then
done </run/systemd/was-enabled || true done </run/systemd/was-enabled || true
fi fi
if [ -n "$2" ]; then
_systemctl daemon-reexec || true
_systemctl try-restart systemd-journald.service || true
_systemctl try-restart systemd-logind.service || true
_systemctl try-restart systemd-networkd.service || true
_systemctl try-restart systemd-resolved.service || true
_systemctl try-restart systemd-timesyncd.service || true
fi
#DEBHELPER# #DEBHELPER#
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment