From: Matteo Nastasi (mop) Date: Thu, 15 Oct 2015 05:06:32 +0000 (+0200) Subject: add 'devstart' command for init script X-Git-Tag: v5.0.0~21 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=634d45b289a7c58aff3a0a4d3a16907a22216d20;p=brisk.git add 'devstart' command for init script --- diff --git a/bin/brisk-init.sh b/bin/brisk-init.sh index 77e27bc..f816cb4 100755 --- a/bin/brisk-init.sh +++ b/bin/brisk-init.sh @@ -47,6 +47,10 @@ case "$1" in fi ;; + devstart) + su - ${BUSER} -c 'cd '"$BPATH"'/spush ; ./brisk-spush.php' + ;; + start) su - ${BUSER} -c 'cd '"$BPATH"'/spush ; screen -d -m -S '"${SSUFF}"' bash -c '"'"'while [ 1 ]; do cd . ; ./brisk-spush.php \| grep "IN LOOP" ; if [ $? -eq 0 ]; then break ; fi ; done'"'" ;;