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