Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 3c21f34ffe05e0a4f350829354fcf14f > scriptlet

net-snmp-5.5-21.fc14.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
# (Fedora 11: /var/net-snmp, Fedora 12: /var/lib/net-snmp)
/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