log start line added to all loggers

This commit is contained in:
ALIHAN DIKEL
2023-05-19 00:05:17 +03:00
parent 74623be501
commit 4fb67390d3
2 changed files with 7 additions and 3 deletions

View File

@@ -31,10 +31,12 @@ list_wifi_ssid(){
}
connect_using_wpa_supp() {
echo "########## log start: $(date) ##########"
sudo wpa_supplicant -D nl80211 -i $DRONE_INTERFACE -c network/$DRONE_WPA_SUPP_CONF
}
get_dhcp_ip () {
echo "########## log start: $(date) ##########"
while true;
do
sudo dhclient $DRONE_INTERFACE
@@ -51,18 +53,22 @@ get_dhcp_ip () {
}
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
}
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 ./
}
start_commander_service() {
echo "########## log start: $(date) ##########"
venv/bin/python commander/service.py $1
}
start_webui_service() {
echo "########## log start: $(date) ##########"
commander_host=$1
ENV_FOR_DYNACONF=$commander_host venv/bin/python -m gradio brain/service.py
}
@@ -126,7 +132,6 @@ elif [ "$1" == "start-jupyter" ]; then
jupyter_pid=$!
echo "started jupyter with PID $jupyter_pid"
echo $jupyter_pid > $pids_dir/jupyter_pid.txt
#tail -f logs/jupyter.log
elif [ "$1" == "stop-jupyter" ]; then
jupyter_pid_file="$pids_dir/jupyter_pid.txt"
@@ -140,7 +145,6 @@ elif [ "$1" == "start-cs" ]; then
codeserver_pid=$!
echo "started code server with PID $codeserver_pid"
echo $codeserver_pid > $pids_dir/codeserver_pid.txt
#tail -f logs/codeserver.log
elif [ "$1" == "stop-cs" ]; then
codeserver_pid_file="$pids_dir/codeserver_pid.txt"
@@ -162,7 +166,6 @@ elif [ "$1" == "start-commander" ]; then
commander_pid=$!
echo "started commander with PID $commander_pid"
echo $commander_pid > $pids_dir/commander_pid.txt
#tail -f logs/commander.log
elif [ "$1" == "stop-commander" ]; then
commander_pid_file="$pids_dir/commander_pid.txt"