summaryrefslogtreecommitdiffstats
path: root/src/etc/init.d/telnetd
blob: 791e3501ba8997f1169952ee7fa4c5eb9d99e2c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

case "${1}" in
	start)
		printf 'Starting telnetd...'
		start-stop-daemon -S -n telnetd -- telnetd
		printf 'done.'
		;;
	stop)
		printf 'Stopping telnetd... '
		start-stop-daemon -K -n telnetd
		printf 'done.'
		;;
	restart)
		"${0}" stop
		"${0}" start
		;;
	*)
		printf 'Usage: %s {start|stop|restart}\n' "${0}"
		exit 1
		;;
esac