1 2 3 4 5
if [ $1 -eq 1 ] && sd_booted; then # Initial installation systemctl --no-reload preset fcoe.service fcoemon.socket || : fi
1 2 3 4 5 6 7
if [ $1 -ge 1 ] && sd_booted; then # Package upgrade, not uninstall for unit in fcoe.service fcoemon.socket; do systemctl set-property $unit Markers=+needs-restart || : done fi
1 2 3 4 5 6 7 8 9
if [ $1 -eq 0 ] && sd_booted; then # Package removal, not upgrade if [ -d /run/systemd/system ]; then systemctl --no-reload disable --now fcoe.service fcoemon.socket || : else systemctl --no-reload disable fcoe.service fcoemon.socket || : fi fi