Sophie

Sophie

distrib > Fedora > 14 > i386 > media > os > by-pkgid > de26850d322993f8b652c9e436e81ad7 > scriptlet

thttpd-2.25b-23.fc12.i686.rpm

PREIN

/bin/sh
/usr/sbin/groupadd -r www &>/dev/null || :
/usr/sbin/useradd -s /bin/false -c "Web server user" \
    -d /var/www/thttpd -M -r -g www thttpd &>/dev/null || :

PREUN

/bin/sh
if [ $1 -eq 0 ]; then
    /sbin/service thttpd stop &>/dev/null || :
    /sbin/chkconfig --del thttpd
fi

POSTIN

/bin/sh
if [ $1 -eq 1 ]; then
    /sbin/chkconfig --add thttpd
fi

POSTUN

/bin/sh
if [ $1 -ge 1 ]; then
    /sbin/service thttpd condrestart &>/dev/null || :
fi