Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 35cfc8cd20f9b9c9b8589c78b5ec1489 > scriptlet

apcupsd-3.12.3-1.amd64.rpm

PREUN

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

POSTIN

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