Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 4e365c458fdd3a82db92b4253c738fa1 > scriptlet

fetchmail-daemon-6.3.6-1.amd64.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	{
if [ -f /var/lock/subsys/fetchmail ]; then
/sbin/service fetchmail stop 1>&2 || :;
fi };	/sbin/chkconfig --del fetchmail
fi

POSTIN

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