PREIN
/bin/sh
getent group news >/dev/null || groupadd -r news getent passwd news >/dev/null || \ useradd -r -g news -d /etc/news -s /sbin/nologin -c 'News user' news exit 0
PREUN
/bin/sh
if [ $1 = 0 ]; then /sbin/service newscache stop >/dev/null 2>&1 /sbin/chkconfig --del newscache fi
POSTIN
/bin/sh
/sbin/chkconfig --add newscache
POSTUN
/bin/sh
if [ $1 != 0 ]; then /sbin/service newscache condrestart >/dev/null 2>&1 fi