X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=init.d%2F_start_stop;fp=init.d%2F_start_stop;h=c712d4d10dbfd5a6e97e94e3dbb934580ffe3e9f;hb=6a7e6ba667861d81b50fc64e164f671e5c8a1aa3;hp=009eaed9440767d71fc6fcc2f1ddc6d562cb0635;hpb=196c06e9d5242ac74759e800b2866947aa500cfd;p=cloudstore.git diff --git a/init.d/_start_stop b/init.d/_start_stop index 009eaed..c712d4d 100755 --- a/init.d/_start_stop +++ b/init.d/_start_stop @@ -1,5 +1,11 @@ +# by default, detach from terminal 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=`grep $SLICE_GROUP /var/lib/extrausers/group | cut -d: -f2` +export ZSLICE=`echo $SLICE | sed 's;^;;'` _start_stop() {