PREUN
/bin/sh
if [ $1 -eq 0 ]; then
/sbin/service oidentd stop &>/dev/null
/sbin/chkconfig --del oidentd
fi
POSTIN
/bin/sh
/sbin/chkconfig --add oidentd
POSTUN
/bin/sh
if [ $1 -ge 1 ]; then
# The most common case
/sbin/service oidentd condrestart &>/dev/null
# The special case, since we renamed the service from "identd" to "oidentd"
# between 2.0.7 and 2.0.8 packages - this is a "name change" condrestart
if [ -f /var/lock/subsys/identd ]; then
/sbin/service identd stop &>/dev/null
/sbin/service oidentd start &>/dev/null
fi
fi