PREUN
/bin/sh
if [ $1 -eq 0 ] ; then
/bin/systemctl --no-reload disable rhsmcertd.service > /dev/null 2>&1 || :
/bin/systemctl stop rhsmcertd.service > /dev/null 2>&1 || :
if [ -x /bin/dbus-send ] ; then
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig > /dev/null 2>&1 || :
fi
fi
POSTIN
/bin/sh
/bin/systemctl enable rhsmcertd.service >/dev/null 2>&1 || :
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
/bin/systemctl try-restart rhsmcertd.service >/dev/null 2>&1 || :
if [ -x /bin/dbus-send ] ; then
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig > /dev/null 2>&1 || :
fi
POSTUN
/bin/sh
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -eq 1 ] ; then
/bin/systemctl try-restart rhsmcertd.service >/dev/null 2>&1 || :
fi