diff options
Diffstat (limited to 'src.etc/init.d/telnetd')
-rwxr-xr-x | src.etc/init.d/telnetd | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/src.etc/init.d/telnetd b/src.etc/init.d/telnetd index 0f51046..562e1d6 100755 --- a/src.etc/init.d/telnetd +++ b/src.etc/init.d/telnetd @@ -1,32 +1,13 @@ -#!/bin/sh +#!/bin/sh /etc/rc.common start() { - printf 'Starting telnetd... ' + log 'Starting telnetd' start-stop-daemon -S -q -n telnetd -x /usr/sbin/telnetd - printf 'done.\n' } stop() { - printf 'Stopping telnetd... ' + log 'Stopping telnetd' start-stop-daemon -K -q -n telnetd - printf 'done.\n' } - -case "${1}" in - start) - start - ;; - stop) - stop - ;; - restart) - stop - start - ;; - *) - printf 'Usage: %s {start|stop|restart}\n' "${0}" >&2 - exit 1 - ;; -esac |