comparison src/libervia.sh @ 562:7e8356479fef

misc: launch script fix (there can now be more than 1 argument)
author Goffi <goffi@goffi.org>
date Fri, 03 Oct 2014 18:31:40 +0200
parents 160b45937ed2
children 0090285a5689
comparison
equal deleted inserted replaced
561:160b45937ed2 562:7e8356479fef
55 LOG_FILE="$LOG_DIR$APP_NAME_FILE.log" 55 LOG_FILE="$LOG_DIR$APP_NAME_FILE.log"
56 RUNNING_MSG="$APP_NAME is running" 56 RUNNING_MSG="$APP_NAME is running"
57 NOT_RUNNING_MSG="$APP_NAME is *NOT* running" 57 NOT_RUNNING_MSG="$APP_NAME is *NOT* running"
58 58
59 # if there is one argument which is "stop", then we kill Libervia 59 # if there is one argument which is "stop", then we kill Libervia
60 if [ $# -eq 1 ];then 60 if [ $# -ge 1 ];then
61 if [ $1 = "stop" ];then 61 if [ $1 = "stop" ];then
62 kill_process $PID_FILE "$APP_NAME" 62 kill_process $PID_FILE "$APP_NAME"
63 exit 0 63 exit 0
64 elif [ $1 = "debug" ];then 64 elif [ $1 = "debug" ];then
65 echo "Launching $APP_NAME in debug mode" 65 echo "Launching $APP_NAME in debug mode"