summaryrefslogtreecommitdiff
path: root/community/tinc/tincd.rc
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-31 06:21:03 -0700
committerroot <root@rshg054.dnsready.net>2013-05-31 06:21:03 -0700
commit7e7561a9640d0e1f54288a391239feb6bd691b56 (patch)
treed3b51b006a1133ace68d149692d9bd9fb3f981a9 /community/tinc/tincd.rc
parent94a3b302f520438e919ef8706ce9cf42ad7c2e11 (diff)
Fri May 31 06:21:01 PDT 2013
Diffstat (limited to 'community/tinc/tincd.rc')
-rw-r--r--community/tinc/tincd.rc42
1 files changed, 0 insertions, 42 deletions
diff --git a/community/tinc/tincd.rc b/community/tinc/tincd.rc
deleted file mode 100644
index 48c132f25..000000000
--- a/community/tinc/tincd.rc
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/bash
-
-daemon_name=tincd
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/conf.d/$daemon_name.conf
-
-case "$1" in
- start)
- for net in "${NETNAMES[@]}"; do
- stat_busy "Starting ${daemon_name}"
- /usr/sbin/tincd -n "${net}" $TINCD_EXTRAOPTS &>/dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- add_daemon ${daemon_name}
- stat_done
- fi
- done
- ;;
- stop)
- stat_busy "Stopping ${daemon_name}"
- for net in "${NETNAMES[@]}"; do
- /usr/sbin/tincd -k -n "${net}" &>/dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon ${daemon_name}
- stat_done
- fi
- done
- ;;
- restart)
- "$0" stop
- sleep 5
- "$0" start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0