summarylogtreecommitdiffstats
path: root/gopherd.rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'gopherd.rc.d')
-rwxr-xr-xgopherd.rc.d38
1 files changed, 0 insertions, 38 deletions
diff --git a/gopherd.rc.d b/gopherd.rc.d
deleted file mode 100755
index d220c2befdfd..000000000000
--- a/gopherd.rc.d
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-### /etc/rc.d/gopherd: Initscript for Gopher Daemon
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PID=`pidof -o %PPID /usr/sbin/gopherd`
-case "$1" in
- start)
- stat_busy "Starting Gopher Daemon"
- [ -z "$PID" ] && \
- /usr/sbin/gopherd -d &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else stat_done; add_daemon gopherd
- echo $PID > /var/run/gopherd.pid
- fi ;;
- stop)
- stat_busy "Stopping Gopher Daemon"
- [ ! -z "$PID" ] \
- && kill $PID &>/dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- stat_done; rm_daemon gopherd
- fi ;;
- restart)
- $0 stop
- sleep 1
- $0 start ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-
-exit 0
-
-### /etc/rc.d/gopherd: Initscript for Gopher Daemon