summaryrefslogtreecommitdiffstats
path: root/src.etc/init.d/telnetd
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-03 11:41:26 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-03 11:41:26 (EDT)
commit8bb39b24d81cf1fa7dacf2f79e2583328ba00c3c (patch)
tree23218ba372536182eb5e9e31ed093c1b64639087 /src.etc/init.d/telnetd
parentb43c8c2e6ba593169edafd9f1b5b67526edab044 (diff)
Make certain service scripts use PID files.
Diffstat (limited to 'src.etc/init.d/telnetd')
-rwxr-xr-xsrc.etc/init.d/telnetd5
1 files changed, 3 insertions, 2 deletions
diff --git a/src.etc/init.d/telnetd b/src.etc/init.d/telnetd
index 50843e3..98f668d 100755
--- a/src.etc/init.d/telnetd
+++ b/src.etc/init.d/telnetd
@@ -6,11 +6,12 @@ STOP='60'
start()
{
log 'Starting telnetd'
- start-stop-daemon -S -q -n telnetd -x /usr/sbin/telnetd
+ start-stop-daemon -S -q -p /var/run/telnetd.pid -m \
+ -x /usr/sbin/telnetd -b -- -F
}
stop()
{
log 'Stopping telnetd'
- start-stop-daemon -K -q -n telnetd
+ start-stop-daemon -K -q -p /var/run/telnetd.pid
}