diff --git a/bin/LAUNCH.sh b/bin/LAUNCH.sh index 862a49a0..fe33720d 100755 --- a/bin/LAUNCH.sh +++ b/bin/LAUNCH.sh @@ -31,15 +31,19 @@ export PATH=$AIL_KVROCKS:$PATH export PATH=$AIL_BIN:$PATH export PATH=$AIL_FLASK:$PATH -isredis=`screen -ls | egrep '[0-9]+.Redis_AIL' | cut -d. -f1` -isardb=`screen -ls | egrep '[0-9]+.ARDB_AIL' | cut -d. -f1` -iskvrocks=`screen -ls | egrep '[0-9]+.KVROCKS_AIL' | cut -d. -f1` -islogged=`screen -ls | egrep '[0-9]+.Logging_AIL' | cut -d. -f1` -is_ail_core=`screen -ls | egrep '[0-9]+.Core_AIL' | cut -d. -f1` -is_ail_2_ail=`screen -ls | egrep '[0-9]+.AIL_2_AIL' | cut -d. -f1` -isscripted=`screen -ls | egrep '[0-9]+.Script_AIL' | cut -d. -f1` -isflasked=`screen -ls | egrep '[0-9]+.Flask_AIL' | cut -d. -f1` -isfeeded=`screen -ls | egrep '[0-9]+.Feeder_Pystemon' | cut -d. -f1` +function isup { + isredis=`screen -ls | egrep '[0-9]+.Redis_AIL' | cut -d. -f1` + isardb=`screen -ls | egrep '[0-9]+.ARDB_AIL' | cut -d. -f1` + iskvrocks=`screen -ls | egrep '[0-9]+.KVROCKS_AIL' | cut -d. -f1` + islogged=`screen -ls | egrep '[0-9]+.Logging_AIL' | cut -d. -f1` + is_ail_core=`screen -ls | egrep '[0-9]+.Core_AIL' | cut -d. -f1` + is_ail_2_ail=`screen -ls | egrep '[0-9]+.AIL_2_AIL' | cut -d. -f1` + isscripted=`screen -ls | egrep '[0-9]+.Script_AIL' | cut -d. -f1` + isflasked=`screen -ls | egrep '[0-9]+.Flask_AIL' | cut -d. -f1` + isfeeded=`screen -ls | egrep '[0-9]+.Feeder_Pystemon' | cut -d. -f1` +} + +isup function helptext { echo -e $YELLOW" @@ -69,6 +73,7 @@ function helptext { LAUNCH.sh [-l | --launchAuto] LAUNCH DB + Scripts [-k | --killAll] Kill DB + Scripts + [-kl | --killLaunch] Kill All & launchAuto [-ks | --killscript] Scripts [-u | --update] Update AIL [-ut | --thirdpartyUpdate] Update UI/Frontend @@ -692,6 +697,10 @@ while [ "$1" != "" ]; do ;; -k | --killAll ) killall; ;; + -kl | --killLaunch ) killall; + isup; + launch_all "automatic"; + ;; -ks | --killscript ) killscript; ;; -m | --menu ) menu_display; diff --git a/var/www/modules/settings/templates/settings_index.html b/var/www/modules/settings/templates/settings_index.html index 2db88d81..e267b706 100644 --- a/var/www/modules/settings/templates/settings_index.html +++ b/var/www/modules/settings/templates/settings_index.html @@ -43,8 +43,10 @@