Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 22432ea9fceee9b46752c1954ef8e69f > scriptlet

crossfire-1.11.0-4.fc12.i686.rpm

PREIN

/bin/sh
getent group crossfire >/dev/null || groupadd -r crossfire
getent passwd crossfire >/dev/null || \
useradd -r -g crossfire -d /usr/share/crossfire -s /sbin/nologin \
    -c "Daemon account for the crossfire server" crossfire
exit 0

PREUN

/bin/sh
if [ "$1" -le "0" ]; then
    /sbin/service crossfire stop > /dev/null 2>&1
    /sbin/chkconfig --del crossfire
fi

POSTIN

/bin/sh
/sbin/chkconfig --add crossfire

POSTUN

/bin/sh
if [ "$1" -ge "1" ]; then
    /sbin/service crossfire condrestart >/dev/null 2>&1
fi