summaryrefslogtreecommitdiff
path: root/community/unbound/rc.d
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-21 00:28:39 -0700
committerroot <root@rshg054.dnsready.net>2013-05-21 00:28:39 -0700
commite3f225daecfd5cfea4af1a4e8ac4b6c46c7ec363 (patch)
treeb3e36d93c34b5b08544b1698462c06fdb99560b8 /community/unbound/rc.d
parent383955a81810f344e11b1472bd4c5069fa77020c (diff)
Tue May 21 00:28:39 PDT 2013
Diffstat (limited to 'community/unbound/rc.d')
-rw-r--r--community/unbound/rc.d39
1 files changed, 0 insertions, 39 deletions
diff --git a/community/unbound/rc.d b/community/unbound/rc.d
deleted file mode 100644
index b5b6466de..000000000
--- a/community/unbound/rc.d
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-name=unbound
-prog="/usr/sbin/unbound"
-
-PID=$(pidof -o %PPID $prog)
-
-case "$1" in
-start)
- stat_busy "Starting $name daemon"
- [[ -z "$PID" ]] && eval $prog &>/dev/null \
- && { add_daemon $name; stat_done; } \
- || { stat_fail; exit 1; }
- ;;
-stop)
- stat_busy "Stopping $name daemon"
- [[ -n "$PID" ]] && kill $PID &>/dev/null \
- && { rm_daemon $name; stat_done; } \
- || { stat_fail; exit 1; }
- ;;
-reload)
- stat_busy "Reloading $name daemon"
- [[ -n "$PID" ]] && kill -SIGHUP $PID &>/dev/null \
- && { stat_done; } \
- || { stat_fail; exit 1; }
- ;;
-restart)
- $0 stop
- sleep 2
- $0 start
- ;;
-*)
- echo "usage: $0 {start|stop|restart|reload}"
- exit 1
- ;;
-esac