PREUN
/bin/sh
if [ $1 = 0 ]; then
# /sbin/service bacula2-fd stop &>/dev/null || :
# /sbin/chkconfig --del bacula2-fd
# Package removal, not upgrade
/bin/systemctl --no-reload disable bacula2-fd.service > /dev/null 2>&1 || :
/bin/systemctl stop bacula2-fd.service > /dev/null 2>&1 || :
fi
POSTIN
/bin/sh
/sbin/chkconfig --add bacula2-fd
POSTUN
/bin/sh
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ "$1" -ge "1" ]; then
# /sbin/service bacula2-fd condrestart &>/dev/null || :
# Package upgrade, not uninstall
/bin/systemctl try-restart bacula2-fd.service >/dev/null 2>&1 || :
fi