PREUN
/bin/sh
if [ "$1" = "0" ]; then
{
if [ -f /var/lock/subsys/eximstated ]; then
/sbin/service eximstated stop 1>&2 || :;
fi }; /sbin/chkconfig --del eximstated
fi
POSTIN
/bin/sh
/sbin/chkconfig --add eximstated
if [ "$1" = 1 ]; then
echo "Run \"/usr/sbin/makenewrrd.sh <host>\" for each your monitored host."
fi
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/eximstated ] && . /etc/sysconfig/eximstated
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/eximstated ]; then
/sbin/service eximstated restart 1>&2 || :;
else
echo 'Run "/sbin/service eximstated start" to start eximstated daemon.'
fi
fi };