diff options
author | root <root@pigstarter.de> | 2013-11-05 13:24:42 +0100 |
---|---|---|
committer | root <root@pigstarter.de> | 2013-11-05 13:24:42 +0100 |
commit | 5e326f51c58e500285ea3daee91986ee1ea518eb (patch) | |
tree | 2b3eccf15e10e4331dcb2d01c9f53620d749f55f /.graveyard/tinc_multicast/retiolum | |
parent | ae627d2aa73ea6862af3985f1c07e95c6d493275 (diff) |
sandbox -> .graveyard
Diffstat (limited to '.graveyard/tinc_multicast/retiolum')
-rwxr-xr-x | .graveyard/tinc_multicast/retiolum | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.graveyard/tinc_multicast/retiolum b/.graveyard/tinc_multicast/retiolum new file mode 100755 index 00000000..1d6b775f --- /dev/null +++ b/.graveyard/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 |