From 05da6e63796501701f91c005b6e70f280db589b9 Mon Sep 17 00:00:00 2001 From: HW42 Date: Tue, 3 Feb 2015 03:34:52 +0100 Subject: [PATCH] debian: postinst: don't start systemd services Starting services in the postinst script doesn't make much sense since the package is normally installed in the template. In addition the start can fail when executed through a trigger. --- debian/qubes-core-agent.postinst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/debian/qubes-core-agent.postinst b/debian/qubes-core-agent.postinst index 8c4f7cd..2852f29 100755 --- a/debian/qubes-core-agent.postinst +++ b/debian/qubes-core-agent.postinst @@ -179,9 +179,7 @@ enableSystemdUnits() { #displayFailedStatus is-enabled ${unit} } || { echo "Enabling: ${unit}..." - systemctl enable ${unit} > /dev/null 2>&1 && { - systemctl start ${unit} > /dev/null 2>&1 || displayFailedStatus start ${unit} - } || { + systemctl enable ${unit} > /dev/null 2>&1 || { echo "Could not enable: ${unit}" displayFailedStatus enable ${unit} }