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