1 2 3 4 5 6 7 8 9 10 11 12 13
if sd_booted; then SYSTEMCTL_BIN=systemctl; SYSTEMD_HELPER=/lib/systemd/systemd-update-helper; $SYSTEMCTL_BIN daemon-reload if [ $1 -eq 1 ]; then # Initial installation $SYSTEMCTL_BIN --no-reload preset pvedaemon pvestatd pveproxy spiceproxy pvescheduler || : else # Package upgrade, not uninstall $SYSTEMD_HELPER mark-restart-system-units pvedaemon pvestatd pveproxy spiceproxy pvescheduler || : fi fi
1 2 3 4 5 6
if [ $1 -eq 0 ] && sd_booted; then SYSTEMCTL_BIN=systemctl; # Package removal, not upgrade $SYSTEMCTL_BIN --no-reload -q disable --now pvedaemon pveproxy pvestatd spiceproxy pvescheduler || : fi