PREUN
/bin/sh
if [ $1 = 0 ]; then service HttpAgent stop > /dev/null 2>/dev/null || :; /sbin/chkconfig --del HttpAgent; fi;
# only do this if it is not an upgrade
if [ $1 -eq 0 ]
then
[ -f /etc/rc.d/init.d/HttpAgent ] && \
/etc/rc.d/init.d/HttpAgent stop
fi
POSTIN
/bin/sh
if [ $1 = 1 ]; then /sbin/chkconfig --add HttpAgent; else if [ -f /var/lock/subsys/HttpAgent ]; then service HttpAgent restart > /dev/null 2>/dev/null || : ; fi; fi;
# restart server if this is an upgrade
if [ $1 -gt 1 ]
then
[ -f /etc/rc.d/init.d/HttpAgent ] && \
/etc/rc.d/init.d/HttpAgent restart
fi