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