Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 9274135cbf6933a7daa0f9ebbb5a0884 > scriptlet

logtrend-visuengine-0.82.2-1mdk.noarch.rpm

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