Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 3ea6382704d12ba654c6bb4960c0be9d > scriptlet

pdns-recursor-3.2-2.fc14.i686.rpm

PREIN

/bin/sh
getent group pdns-recursor > /dev/null || groupadd -r pdns-recursor
getent passwd pdns-recursor > /dev/null || \
    useradd -r -g pdns-recursor -d / -s /sbin/nologin \
    -c "PwerDNS Recursor user" pdns-recursor
exit 0

PREUN

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

POSTIN

/bin/sh
chkconfig --add pdns-recursor

POSTUN

/bin/sh
if [ $1 -ge 1 ]; then
    service pdns-recursor condrestart >/dev/null 2>&1 || :
fi