From 4e6b6db2c4718aa6285f82e4f750bc7ac68d0f65 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Thu, 7 Oct 2021 10:27:22 +0200 Subject: [PATCH] d/postinst: use reload-or-restart instead of try-reload-or-try-restart The only difference is that reload-or-try-restart does not do anything if the service isn't already running, while reload-or-restart also starts a stopped service. We explicitly check if the service is enabled on upgrade before doing any start/reload-or-restart action anyway. So, it would now start daemons that were stopped but not disabled, which is not a really valid state and would have happened on the next reboot anyway. This starts new daemons (like the pvescheduler) automatically on a package upgrade Suggested-by: Thomas Lamprecht Signed-off-by: Dominik Csapak Signed-off-by: Thomas Lamprecht --- debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index aed4da3f..c4df64b5 100755 --- a/debian/postinst +++ b/debian/postinst @@ -180,7 +180,7 @@ case "$1" in # modeled after code generated by dh_start for unit in ${UNITS}; do if test -n "$2"; then - dh_action="reload-or-try-restart"; + dh_action="reload-or-restart"; else dh_action="start" fi