PREIN
/bin/sh
# create anyterm group / user getent group anyterm >/dev/null || \ /usr/sbin/groupadd -r anyterm getent passwd anyterm > /dev/null || \ /usr/sbin/useradd -r -s /sbin/nologin -d /dev/null \ -M -c 'Anyterm user' -g anyterm anyterm exit 0
PREUN
/bin/sh
if [ $1 = 0 ] ; then /sbin/service anyterm stop >/dev/null 2>&1 /sbin/chkconfig --del anyterm fi
POSTIN
/bin/sh
# adds the proper /etc/rc*.d links for the script /sbin/chkconfig --add anyterm