Sophie

Sophie

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

watchdog-5.2.6-2.amd64.rpm

PREUN

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

POSTIN

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