Sophie

Sophie

distrib > Fedora > 15 > x86_64 > by-pkgid > ca0020e8fd4e86c427a55b5e729d3199 > scriptlet

at-3.1.12-9.fc15.x86_64.rpm

PREUN

/bin/sh
if [ "$1" = "0" ] ; then
	/sbin/service atd stop >/dev/null 2>&1 ||:
	/sbin/chkconfig --del atd
	# systemd
	/bin/systemctl disable atd.service >/dev/null 2>&1 || :
	/bin/systemctl stop atd.service > /dev/null 2>&1 || :
fi

POSTIN

/bin/sh
touch /var/spool/at/.SEQ
chmod 600 /var/spool/at/.SEQ
chown daemon:daemon /var/spool/at/.SEQ
# must be in chkconfig on
/sbin/chkconfig --add atd
# systemd
/bin/systemctl enable atd.service >/dev/null 2>&1 || :

POSTUN

/bin/sh
if [ "$1" -ge "1" ]; then
	/sbin/service atd condrestart >/dev/null 2>&1 ||:
	# systemd
	/bin/systemctl try-restart atd.service >/dev/null 2>&1 || :
fi