Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 4c073306ece0a3d9b9fd23aff11db927 > scriptlet

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

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