PREUN
/bin/sh
if [ $1 -eq 0 ] && [ -x /usr/bin/systemctl ]; then
# Package removal, not upgrade
/usr/bin/systemctl --no-reload disable --now lfc-dli.service || :
fi
POSTIN
/bin/sh
# Clean up pre-systemd config
if [ -r /etc/rc.d/init.d/lfc-dli ] ; then
/sbin/service lfc-dli stop > /dev/null 2>&1 || :
/sbin/chkconfig --del lfc-dli > /dev/null 2>&1 || :
fi
if [ $1 -eq 1 ] && [ -x /usr/bin/systemctl ]; then
# Initial installation
/usr/bin/systemctl --no-reload preset lfc-dli.service || :
fi
POSTUN
/bin/sh
if [ $1 -ge 1 ] && [ -x /usr/bin/systemctl ]; then
# Package upgrade, not uninstall
/usr/bin/systemctl try-restart lfc-dli.service || :
fi