Sophie

Sophie

distrib > Fedora > 14 > i386 > media > updates > by-pkgid > 38d5fb7ae53872d8f5ac2145c495ddee > scriptlet

xrootd-3.0.5-1.fc14.i686.rpm

PREIN

/bin/sh
getent group xrootd >/dev/null || groupadd -r xrootd
getent passwd xrootd >/dev/null || useradd -r -g xrootd -s /sbin/nologin \
  -d /var/spool/xrootd -c "XRootD runtime user" xrootd

# Remove obsolete service
/sbin/service olbd stop >/dev/null 2>&1 || :
/sbin/chkconfig --del olbd >/dev/null 2>&1 || :

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 frm_purged stop >/dev/null 2>&1 || :
    /sbin/service frm_xfrd stop >/dev/null 2>&1 || :
    /sbin/chkconfig --del xrootd
    /sbin/chkconfig --del cmsd
    /sbin/chkconfig --del frm_purged
    /sbin/chkconfig --del frm_xfrd
fi

POSTIN

/bin/sh
if [ $1 = 1 ]; then
    /sbin/chkconfig --add xrootd
    /sbin/chkconfig --add cmsd
    /sbin/chkconfig --add frm_purged
    /sbin/chkconfig --add frm_xfrd
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 frm_purged condrestart >/dev/null 2>&1 || :
    /sbin/service frm_xfrd condrestart >/dev/null 2>&1 || :
fi