PREIN
/bin/sh
getent group xrootd >/dev/null || groupadd -r xrootd
getent passwd xrootd >/dev/null || useradd -r -g xrootd \
-d /etc/xrootd -s /sbin/nologin -c "xrootd Server Account" xrootd
exit 0
PREUN
/bin/sh
if [ $1 = 0 ]; then
/sbin/service xrootd stop >/dev/null 2>&1 || :
/sbin/service cmsd stop >/dev/null 2>&1 || :
/sbin/service olbd stop >/dev/null 2>&1 || :
/sbin/chkconfig --del xrootd
/sbin/chkconfig --del cmsd
/sbin/chkconfig --del olbd
fi
POSTIN
/bin/sh
if [ $1 = 1 ]; then
/sbin/chkconfig --add xrootd
/sbin/chkconfig --add cmsd
/sbin/chkconfig --add olbd
fi
POSTUN
/bin/sh
if [ $1 -ge 1 ]; then
/sbin/service xrootd condrestart >/dev/null 2>&1 || :
/sbin/service cmsd condrestart >/dev/null 2>&1 || :
/sbin/service olbd condrestart >/dev/null 2>&1 || :
fi