mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 04:47:06 +00:00
use systemd command reload-or-restart instead of reload
So that stopped services gets restarted.
This commit is contained in:
parent
32607384dc
commit
a55fbccc5b
10
debian/postinst
vendored
10
debian/postinst
vendored
@ -26,10 +26,10 @@ case "$1" in
|
|||||||
test -f /etc/pve/local/pve-ssl.pem || exit 0;
|
test -f /etc/pve/local/pve-ssl.pem || exit 0;
|
||||||
test -e /proxmox_install_mode && exit 0;
|
test -e /proxmox_install_mode && exit 0;
|
||||||
|
|
||||||
deb-systemd-invoke reload pvedaemon.service
|
deb-systemd-invoke reload-or-restart pvedaemon.service
|
||||||
deb-systemd-invoke reload pvestatd.service
|
deb-systemd-invoke reload-or-restart pvestatd.service
|
||||||
deb-systemd-invoke reload pveproxy.service
|
deb-systemd-invoke reload-or-restart pveproxy.service
|
||||||
deb-systemd-invoke reload spiceproxy.service
|
deb-systemd-invoke reload-or-restart spiceproxy.service
|
||||||
|
|
||||||
exit 0;;
|
exit 0;;
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ case "$1" in
|
|||||||
if test ! -e /proxmox_install_mode; then
|
if test ! -e /proxmox_install_mode; then
|
||||||
|
|
||||||
for service in pvedaemon pveproxy spiceproxy pvestatd; do
|
for service in pvedaemon pveproxy spiceproxy pvestatd; do
|
||||||
deb-systemd-invoke reload $service
|
deb-systemd-invoke reload-or-restart $service
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user