From: Dobrica Pavlinusic Date: Sat, 11 Feb 2012 16:47:43 +0000 (+0100) Subject: use SLICE_GROUP X-Git-Url: http://git.rot13.org/?p=cloudstore.git;a=commitdiff_plain;h=38679b56031bd8479c78a92849770db19683f748 use SLICE_GROUP --- diff --git a/init.d/_start_stop b/init.d/_start_stop index c712d4d..be4b97a 100755 --- a/init.d/_start_stop +++ b/init.d/_start_stop @@ -3,7 +3,7 @@ BACKGROUND=1 # deduce name from script name NAME=`basename $0` # generate ZSLICE and SLICE from group name -SLICE_GROUP=`echo $NAME | cut -d\- -f1` +export SLICE_GROUP=`echo $NAME | cut -d\- -f1` export SLICE=`grep $SLICE_GROUP /var/lib/extrausers/group | cut -d: -f2` export ZSLICE=`echo $SLICE | sed 's;^;;'` diff --git a/init.d/s1-rsync-piper b/init.d/s1-rsync-piper index cc41a26..3de713e 100755 --- a/init.d/s1-rsync-piper +++ b/init.d/s1-rsync-piper @@ -1,8 +1,9 @@ #!/bin/sh -DAEMON="./rsync-piper.pl s1" - . /srv/cloudstore/init.d/_start_stop + +DAEMON="./rsync-piper.pl $SLICE_GROUP" + _start_stop $*