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