aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/netkit-base/netkit-base-0.17/init
blob: cf50bcd5462c2f048b367a2c5db4709343e79bdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
#
# start/stop inetd super server.

if ! [ -x /usr/sbin/inetd ]; then
	exit 0
fi

case "$1" in
    start)
	echo -n "Starting internet superserver:"
	echo -n " inetd" ; start-stop-daemon -S -x /usr/sbin/inetd > /dev/null
	echo "."
	;;
    stop)
	echo -n "Stopping internet superserver:"
	echo -n " inetd" ; start-stop-daemon -K -x /usr/sbin/inetd > /dev/null
	echo "."
	;;
    restart)
	echo -n "Restarting internet superserver:"
	echo -n " inetd "
	killall -HUP inetd
	echo "."
	;;
    *)
	echo "Usage: /etc/init.d/inetd {start|stop|restart}"
	exit 1
	;;
esac

exit 0