From f145a6bc951d00044d81aec78e882b2831e27b9a Mon Sep 17 00:00:00 2001 From: casjay Date: Mon, 24 Oct 2022 18:24:14 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rootfs/usr/local/bin/start-wttr.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/rootfs/usr/local/bin/start-wttr.sh b/rootfs/usr/local/bin/start-wttr.sh index 9b93895..a02d846 100755 --- a/rootfs/usr/local/bin/start-wttr.sh +++ b/rootfs/usr/local/bin/start-wttr.sh @@ -12,8 +12,8 @@ # @@Description : script to start wttr # @@Changelog : New script # @@TODO : Better documentation -# @@Other : -# @@Resource : +# @@Other : +# @@Resource : # @@Terminal App : no # @@sudo/root : no # @@Template : other/start-service @@ -48,6 +48,11 @@ __exec_command() { [ "$exitCode" = 0 ] || exitCode=10 return ${exitCode:-$?} } +__start_servers() { + python3 /app/bin/srv.py & + python3 /app/bin/proxy.py & + python3 /app/bin/geo-proxy.py +} # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Set variables DISPLAY="${DISPLAY:-}" @@ -77,7 +82,7 @@ CONTAINER_IP_ADDRESS="$(ip a 2>/dev/null | grep 'inet' | grep -v '127.0.0.1' | a # Overwrite variables #SERVICE_PORT="" SERVICE_NAME="wttr" -SERVICE_COMMAND="$SERVICE_NAME" +SERVICE_COMMAND="__start_servers" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Show start message