diff options
author | Lassulus <lassulus@googlemail.com> | 2012-12-20 03:31:02 +0100 |
---|---|---|
committer | Lassulus <lassulus@googlemail.com> | 2012-12-20 03:31:02 +0100 |
commit | a283809283e3e0606271ae263ff8d4ccbd990af6 (patch) | |
tree | 152c7d4c1db1ca7b9b7bef10ec4c4b5b2f1964a6 /sandbox/tinc_multicast/retiolum | |
parent | 325ab16e706b21abd172d3006729b51d323c93b9 (diff) |
moved deprecated retiolum.py
Diffstat (limited to 'sandbox/tinc_multicast/retiolum')
-rwxr-xr-x | sandbox/tinc_multicast/retiolum | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sandbox/tinc_multicast/retiolum b/sandbox/tinc_multicast/retiolum new file mode 100755 index 00000000..1d6b775f --- /dev/null +++ b/sandbox/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 |