POSTIN
/bin/sh
/sbin/chkconfig --add dhcpd # New dhcpd lease file if [ ! -f /var/lib/dhcp/dhcpd.leases ]; then touch /var/lib/dhcp/dhcpd.leases fi if [ $1 = 0 ]; then /etc/rc.d/init.d/dhcpd start fi
POSTUN
/bin/sh
if [ $1 = 0 ]; then # execute this only if we are NOT doing an upgrade /sbin/chkconfig --del dhcpd else /etc/rc.d/init.d/dhcpd stop fi