[pve-devel] [PATCH manager 2/7] postinst: use reload-or-restart instead of reload-or-try-restart
Dominik Csapak
d.csapak at proxmox.com
Thu Oct 7 10:27:22 CEST 2021
the only difference is that reload-or-try-restart does not
do anything if the service is not started already.
on upgrade, we explicitely check if the service is enabled, and only
then do this action. so it would now start daemons that were
stopped but not disabled (which is not really valid state anyway)
this starts new daemons (like the pvescheduler) automatically on
a package upgrade
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
debian/postinst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/postinst b/debian/postinst
index f6407178..7be1aa3d 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -181,7 +181,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
--
2.30.2
More information about the pve-devel
mailing list