PREUN
/bin/sh
if [ $1 -eq 0 ] && [ -x /usr/bin/systemctl ]; then
# Package removal, not upgrade
/usr/bin/systemctl --no-reload disable --now nis-domainname.service || :
fi
# Needs to work even if systemd is not available:
:
# NOTE: Nothing to do for upgrade (in postun), nis-domainname.service is oneshot.
POSTIN
/bin/sh
if [ $1 -eq 1 ] && [ -x /usr/bin/systemctl ]; then
# Initial installation
/usr/bin/systemctl --no-reload preset nis-domainname.service || :
fi
# Needs to work even if systemd is not available:
: