PREIN
/bin/sh
if [ -f /etc/cron.daily/texpire.cron ] ; then
rm -f /etc/cron.daily/texpire.cron
fi
POSTIN
/bin/sh
if [ `grep leafnode /etc/inetd.conf | wc -l` = 0 ] ; then
echo "nntp stream tcp nowait news /usr/sbin/tcpd /usr/sbin/leafnode" >> /etc/inetd.conf
fi
if [ -f /var/run/inetd.pid ] ; then
kill -HUP `cat /var/run/inetd.pid` 2> /dev/null ||:
fi
POSTUN
/bin/sh
if [ "$1" = "0" ]; then
grep -v leafnode /etc/inetd.conf | grep -v /bin/sh > /etc/inetd.conf.new
mv /etc/inetd.conf.new /etc/inetd.conf
fi
if [ -f /var/run/inetd.pid ] ; then
kill -HUP `cat /var/run/inetd.pid` 2> /dev/null ||:
fi