Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 9a46c80616c755a790ebbd1ef86410c3 > scriptlet

tclhttpd-3.5.1-21.fc12.i686.rpm

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