Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > cc321d762302585d9799d8a519a03930 > scriptlet

gearmand-0.13-2.fc14.x86_64.rpm

PREIN

/bin/sh
getent group gearmand >/dev/null || groupadd -r gearmand
getent passwd gearmand >/dev/null || \
        useradd -r -g gearmand -d / -s /sbin/nologin \
        -c "Gearmand job server" gearmand
exit 0

PREUN

/bin/sh
if [ $1 -eq 0 ]; then
        /sbin/service gearmand stop >/dev/null 2>&1 || :
        /sbin/chkconfig --del gearmand
fi

POSTIN

/bin/sh
if [ $1 -eq 1 ]; then
        /sbin/chkconfig --add gearmand
fi