PREUN
/bin/sh
if [ "$1" = "0" ]; then
{
if [ -f /var/lock/subsys/tpop3d ]; then
/sbin/service tpop3d stop 1>&2 || :;
fi }; /sbin/chkconfig --del tpop3d
fi
POSTIN
/bin/sh
/sbin/chkconfig --add tpop3d
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/tpop3d ] && . /etc/sysconfig/tpop3d
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/tpop3d ]; then
/sbin/service tpop3d restart 1>&2 || :;
else
echo 'Run "/sbin/service tpop3d start" to start tpop3d daemon.'
fi
fi };