From 088ad05bfb86f973970c8697912d77a03d6a9c1e Mon Sep 17 00:00:00 2001 From: Lassulus Date: Wed, 25 May 2011 17:02:11 +0200 Subject: added rc.d retiolum file --- .scripts/tinc_multicast/retiolum | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 .scripts/tinc_multicast/retiolum (limited to '.scripts/tinc_multicast') diff --git a/.scripts/tinc_multicast/retiolum b/.scripts/tinc_multicast/retiolum new file mode 100755 index 00000000..f506a1b0 --- /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 tincd + stat_done + ;; + restart) + $0 stop + sleep 4 + $0 start + ;; + *) + echo "usage $0 {startĀ¦stopĀ¦restart}" +esac +exit 0 -- cgit v1.2.3 From 97a9aa1a5840957e655037d9bc68421727dfab21 Mon Sep 17 00:00:00 2001 From: Lassulus Date: Wed, 25 May 2011 17:06:41 +0200 Subject: fixed typos --- .scripts/tinc_multicast/retiolum | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.scripts/tinc_multicast') diff --git a/.scripts/tinc_multicast/retiolum b/.scripts/tinc_multicast/retiolum index f506a1b0..1d6b775f 100755 --- a/.scripts/tinc_multicast/retiolum +++ b/.scripts/tinc_multicast/retiolum @@ -20,7 +20,7 @@ case "$1" in stop) stat_busy "Stopping retiolum Daemon" kill `cat /var/lock/retiolum.retiolum` - rm_daemon tincd + rm_daemon retiolum stat_done ;; restart) -- cgit v1.2.3