PREIN
/bin/sh
getent group cherokee >/dev/null || groupadd -r cherokee getent passwd cherokee >/dev/null || \ useradd -r -g cherokee -d /var/lib/cherokee -s /sbin/nologin \ -c "cherokee web server" cherokee exit 0
PREUN
/bin/sh
if [ $1 = 0 ] ; then /sbin/service cherokee stop >/dev/null 2>&1 /sbin/chkconfig --del cherokee fi
POSTIN
/bin/sh
/sbin/ldconfig /sbin/chkconfig --add cherokee
POSTUN
/bin/sh
/sbin/ldconfig