Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > acb2b00891c89a8dc3f79d9981a838f9 > scriptlet

linux-atm-rc-scripts-2.4.1-3.amd64.rpm

PREUN

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

POSTIN

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