7 printf "Starting telnetd: "
8 start-stop-daemon
-S -q -m -b -p /var
/run
/telnetd.pid \
9 -x /usr
/sbin
/telnetd
-- -F
10 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
14 printf "Stopping telnetd: "
15 start-stop-daemon
-K -q -p /var
/run
/telnetd.pid \
17 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
32 echo "Usage: $0 {start|stop|restart}"