Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 8e9e2c4db2a0b6f90e0a4273f4ff07a2 > scriptlet

logtrend-linuxagent-0.82.2-2mdk.noarch.rpm

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