PREIN
/bin/sh
# The "tclhttpd" user is used so that we don't have to run the
# server as "root" or "nobody".
user_uid=`id -u tclhttpd 2>/dev/null`
if [ x"$user_uid" = x ] ; then
useradd -r -s /sbin/nologin -d /var/www/tclhttpd -M \
-c 'Tclhttpd' \
tclhttpd >/dev/null || :
fi
PREUN
/bin/sh
if [ "$1" = "0" ]; then
/sbin/service tclhttpd stop > /dev/null 2>&1
/sbin/chkconfig --del tclhttpd
fi
POSTIN
/bin/sh
/sbin/chkconfig --add tclhttpd
POSTUN
/bin/sh
if [ "$1" -ge "1" ]; then
/sbin/service tclhttpd condrestart >/dev/null 2>&1
fi