PREIN
/bin/sh
getent group nsd >/dev/null || groupadd -r nsd getent passwd nsd >/dev/null || \ useradd -r -g nsd -d /etc/nsd -s /sbin/nologin \ -c "nsd daemon account" nsd exit 0
PREUN
/bin/sh
if [ $1 -eq 0 ]; then /sbin/service nsd stop /sbin/chkconfig --del nsd fi
POSTIN
/bin/sh
/sbin/chkconfig --add nsd
POSTUN
/bin/sh
if [ "$1" -ge "1" ]; then /sbin/service nsd condrestart fi