summaryrefslogtreecommitdiffstats
path: root/.scripts/tinc_multicast
diff options
context:
space:
mode:
authorFelix Richter <github@syntax-fehler.de>2011-05-26 10:29:06 +0200
committerFelix Richter <github@syntax-fehler.de>2011-05-26 10:29:06 +0200
commitdb7f9ee40d1a34e0ae9f1d5b67aa3a4090cd4dee (patch)
tree63c73a9d4aa64d9559862cad6aba3d4503295fcc /.scripts/tinc_multicast
parent67b701652f280e041914685bfcd58d03f2a4468a (diff)
parent554b9278430864dff9920c762b2e669e2d6ab3da (diff)
Merge branch 'master' of github.com:miefda/retiolum
Diffstat (limited to '.scripts/tinc_multicast')
-rwxr-xr-x.scripts/tinc_multicast/retiolum34
1 files changed, 34 insertions, 0 deletions
diff --git a/.scripts/tinc_multicast/retiolum b/.scripts/tinc_multicast/retiolum
new file mode 100755
index 00000000..1d6b775f
--- /dev/null
+++ b/.scripts/tinc_multicast/retiolum
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+TINCNAME='retiolum'
+case "$1" in
+ start)
+ stat_busy "Starting retiolum Daemon"
+ success=0
+ /home/death/git/retiolum/.scripts/tinc_multicast/retiolum.py -n retiolum -T &
+ sleep 2
+ if [ $success -eq 0 ]; then
+ add_daemon retiolum
+ stat_done
+ else
+ stat_fail
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping retiolum Daemon"
+ kill `cat /var/lock/retiolum.retiolum`
+ rm_daemon retiolum
+ stat_done
+ ;;
+ restart)
+ $0 stop
+ sleep 4
+ $0 start
+ ;;
+ *)
+ echo "usage $0 {startĀ¦stopĀ¦restart}"
+esac
+exit 0