Sophie

Sophie

distrib > CentOS > 6 > i386 > media > updates > by-pkgid > 958b22234db0ecbf768c7c2c9403a1a4 > scriptlet

net-snmp-5.5-27.el6_0.1.i686.rpm

PREUN

/bin/sh
if [ $1 = 0 ]; then
    service snmpd stop >/dev/null 2>&1
    /sbin/chkconfig --del snmpd
    service snmptrapd stop >/dev/null 2>&1
    /sbin/chkconfig --del snmptrapd
fi

POSTIN

/bin/sh
/sbin/chkconfig --add snmpd 
/sbin/chkconfig --add snmptrapd

# move local state files from /var/net-snmp to new location when updating the package
/bin/mv /var/net-snmp/* /var/lib/net-snmp/ &>/dev/null || :

POSTUN

/bin/sh
if [ "$1" -ge "1" ]; then
    service snmpd condrestart >/dev/null 2>&1 || :
    service snmptrapd condrestart >/dev/null 2>&1 || :
fi