log start line added to all loggers
This commit is contained in:
@@ -20,3 +20,4 @@
|
|||||||
* ./manage start-talikng
|
* ./manage start-talikng
|
||||||
|
|
||||||
### auto chatui-rpi setup:
|
### auto chatui-rpi setup:
|
||||||
|
*
|
||||||
|
|||||||
@@ -31,10 +31,12 @@ list_wifi_ssid(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
connect_using_wpa_supp() {
|
connect_using_wpa_supp() {
|
||||||
|
echo "########## log start: $(date) ##########"
|
||||||
sudo wpa_supplicant -D nl80211 -i $DRONE_INTERFACE -c network/$DRONE_WPA_SUPP_CONF
|
sudo wpa_supplicant -D nl80211 -i $DRONE_INTERFACE -c network/$DRONE_WPA_SUPP_CONF
|
||||||
}
|
}
|
||||||
|
|
||||||
get_dhcp_ip () {
|
get_dhcp_ip () {
|
||||||
|
echo "########## log start: $(date) ##########"
|
||||||
while true;
|
while true;
|
||||||
do
|
do
|
||||||
sudo dhclient $DRONE_INTERFACE
|
sudo dhclient $DRONE_INTERFACE
|
||||||
@@ -51,18 +53,22 @@ get_dhcp_ip () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start_jupyter() {
|
start_jupyter() {
|
||||||
|
echo "########## log start: $(date) ##########"
|
||||||
venv/bin/python -m jupyter lab --ip='0.0.0.0' --NotebookApp.token='' --NotebookApp.password='' --no-browser --port=8888
|
venv/bin/python -m jupyter lab --ip='0.0.0.0' --NotebookApp.token='' --NotebookApp.password='' --no-browser --port=8888
|
||||||
}
|
}
|
||||||
|
|
||||||
start_codeserver(){
|
start_codeserver(){
|
||||||
|
echo "########## log start: $(date) ##########"
|
||||||
packages/code-server/code-server-4.12.0-linux-amd64/bin/code-server --config /home/uad/misc/tello-commander/packages/code-server/config.yaml --disable-getting-started-override --disable-workspace-trust --disable-telemetry ./
|
packages/code-server/code-server-4.12.0-linux-amd64/bin/code-server --config /home/uad/misc/tello-commander/packages/code-server/config.yaml --disable-getting-started-override --disable-workspace-trust --disable-telemetry ./
|
||||||
}
|
}
|
||||||
|
|
||||||
start_commander_service() {
|
start_commander_service() {
|
||||||
|
echo "########## log start: $(date) ##########"
|
||||||
venv/bin/python commander/service.py $1
|
venv/bin/python commander/service.py $1
|
||||||
}
|
}
|
||||||
|
|
||||||
start_webui_service() {
|
start_webui_service() {
|
||||||
|
echo "########## log start: $(date) ##########"
|
||||||
commander_host=$1
|
commander_host=$1
|
||||||
ENV_FOR_DYNACONF=$commander_host venv/bin/python -m gradio brain/service.py
|
ENV_FOR_DYNACONF=$commander_host venv/bin/python -m gradio brain/service.py
|
||||||
}
|
}
|
||||||
@@ -126,7 +132,6 @@ elif [ "$1" == "start-jupyter" ]; then
|
|||||||
jupyter_pid=$!
|
jupyter_pid=$!
|
||||||
echo "started jupyter with PID $jupyter_pid"
|
echo "started jupyter with PID $jupyter_pid"
|
||||||
echo $jupyter_pid > $pids_dir/jupyter_pid.txt
|
echo $jupyter_pid > $pids_dir/jupyter_pid.txt
|
||||||
#tail -f logs/jupyter.log
|
|
||||||
|
|
||||||
elif [ "$1" == "stop-jupyter" ]; then
|
elif [ "$1" == "stop-jupyter" ]; then
|
||||||
jupyter_pid_file="$pids_dir/jupyter_pid.txt"
|
jupyter_pid_file="$pids_dir/jupyter_pid.txt"
|
||||||
@@ -140,7 +145,6 @@ elif [ "$1" == "start-cs" ]; then
|
|||||||
codeserver_pid=$!
|
codeserver_pid=$!
|
||||||
echo "started code server with PID $codeserver_pid"
|
echo "started code server with PID $codeserver_pid"
|
||||||
echo $codeserver_pid > $pids_dir/codeserver_pid.txt
|
echo $codeserver_pid > $pids_dir/codeserver_pid.txt
|
||||||
#tail -f logs/codeserver.log
|
|
||||||
|
|
||||||
elif [ "$1" == "stop-cs" ]; then
|
elif [ "$1" == "stop-cs" ]; then
|
||||||
codeserver_pid_file="$pids_dir/codeserver_pid.txt"
|
codeserver_pid_file="$pids_dir/codeserver_pid.txt"
|
||||||
@@ -162,7 +166,6 @@ elif [ "$1" == "start-commander" ]; then
|
|||||||
commander_pid=$!
|
commander_pid=$!
|
||||||
echo "started commander with PID $commander_pid"
|
echo "started commander with PID $commander_pid"
|
||||||
echo $commander_pid > $pids_dir/commander_pid.txt
|
echo $commander_pid > $pids_dir/commander_pid.txt
|
||||||
#tail -f logs/commander.log
|
|
||||||
|
|
||||||
elif [ "$1" == "stop-commander" ]; then
|
elif [ "$1" == "stop-commander" ]; then
|
||||||
commander_pid_file="$pids_dir/commander_pid.txt"
|
commander_pid_file="$pids_dir/commander_pid.txt"
|
||||||
|
|||||||
Reference in New Issue
Block a user