Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 8275d17f715881e6c9826bd9121e1ce8 > scriptlet

at-3.1.8-31.amd64.rpm

PREUN

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

POSTIN

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