#!/bin/sh

. /etc/init.d/globals

case "$1" in
	start)
		/sbin/inetd
	;;
	stop)
		read pid < /var/run/inetd.pid || exit 1
		kill $pid
	;;
	reload)
		read pid < /var/run/inetd.pid || exit 1
		kill -HUP $pid
	;;
	restart)
		$0 stop
		$0 start
	;;
	*)
		echo "[$BASENAME] Usage: $0 {start|restart|reload|stop}"
	;;
esac
