POSTIN
/bin/sh
# mise a jour /etc/services if needed
CHECK_PORT=`grep 2850 /etc/services`
if [ -z "$CHECK_PORT" ]; then
echo "# Port needed by pcpd" >> /etc/services
echo "pcp 2850/tcp # Caltech pcp" >> /etc/services
fi
if [ -f /var/run/xinetd.pid ]; then
echo "Sending SIGUSR2 to xinetd (pid `cat /var/run/xinetd.pid`)"
kill -USR2 `cat /var/run/xinetd.pid`
fi
POSTUN
/bin/sh
if [ -f /var/run/xinetd.pid ]; then
echo "Sending SIGUSR2 to xinetd (pid `cat /var/run/xinetd.pid`)"
kill -USR2 `cat /var/run/xinetd.pid`
fi