PREIN
/bin/sh
getent group halevt >/dev/null || groupadd -r halevt
getent passwd halevt >/dev/null || \
useradd -r -g halevt -d /var/lib/halevt -s /sbin/nologin \
-c "Halevt system user" halevt
exit 0
PREUN
/bin/sh
if [ $1 = 0 ]; then
/sbin/service halevt stop >/dev/null 2>&1 || :
/sbin/chkconfig --del halevt
/sbin/install-info --delete /usr/share/info/halevt.info /usr/share/info/dir || :
fi
POSTIN
/bin/sh
# This adds the proper /etc/rc*.d links for the script
/sbin/chkconfig --add halevt
/sbin/install-info /usr/share/info/halevt.info /usr/share/info/dir || :