PREUN
/bin/sh
if [ $1 -eq 0 ] && [ -x /usr/bin/systemctl ]; then
# Package removal, not upgrade
/usr/bin/systemctl --no-reload disable --now supervisor.service || :
fi
POSTIN
/bin/sh
/usr/bin/systemd-tmpfiles --create supervisor.conf
if [ $1 -eq 1 ] && [ -x /usr/bin/systemctl ]; then
# Initial installation
/usr/bin/systemctl --no-reload preset supervisor.service || :
fi
POSTUN
/bin/sh
# Don't restart supervisord here, we don't want its children to be restarted
# when the supervisor package is upgraded. Admins need to manually reload or
# restart supervisord.service.