Mercurial > libervia-backend
diff src/sat.sh @ 1115:b56374a1f6d6
misc: daemon mode refactoring:
- there is no more daemon mode disctinction between local and installed version
- sat is launched as daemon by default, use "sat fg" to launch it foreground
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 20 Aug 2014 23:45:21 +0200 |
parents | 7293233970ab |
children | 9ae01ccf89c1 |
line wrap: on
line diff
--- a/src/sat.sh Wed Aug 20 23:42:58 2014 +0200 +++ b/src/sat.sh Wed Aug 20 23:45:21 2014 +0200 @@ -1,6 +1,7 @@ #!/bin/sh DEBUG="" +DAEMON="" PYTHON="python2" kill_process() { @@ -59,14 +60,15 @@ if [ $1 = "stop" ];then kill_process $PID_FILE "$APP_NAME" exit 0 - fi - if [ $1 = "debug" ];then + elif [ $1 = "debug" ];then echo "Launching $APP_NAME in debug mode" DEBUG="--debug" + elif [ $1 = "fg" ];then + echo "Launching $APP_NAME in foreground mode" + DAEMON="n" fi fi -DAEMON="n" MAIN_OPTIONS="-${DAEMON}oy" TAP_PATH="./" TAP_FILE="$APP_NAME_FILE.tac"