]> git.proxmox.com Git - pve-manager.git/commit
d/postinst: use reload-or-restart instead of try-reload-or-try-restart
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 7 Oct 2021 08:27:22 +0000 (10:27 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 7 Oct 2021 08:34:24 +0000 (10:34 +0200)
commit4e6b6db2c4718aa6285f82e4f750bc7ac68d0f65
treea45175c26eb7ff95037dea6d8f3f4aeee3b02af1
parentdf827e98900ba782e1b39c43248386de3f1e8875
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 <t.lamprecht@proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/postinst