Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 814ac09d5b5c72d3f28109a0472e3d18 > scriptlet

nagios-nrpe-2.6-2.amd64.rpm

PREUN

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

POSTIN

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

Triggers

nagios-nrpe < 2.6-1.1

/bin/sh
/bin/sed -i -e 's,/var/run/nrpe.pid,/var/run/nrpe/nrpe.pid,' /etc/nagios/nrpe.cfg