From 2b48e2f4a357d7d0243a0be81fd7dbf17c032ae7 Mon Sep 17 00:00:00 2001 From: Zach Wener Date: Sat, 10 Feb 2024 15:27:34 -0800 Subject: [PATCH] cleanup --- OS/01/start.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/OS/01/start.sh b/OS/01/start.sh index 1006247..2940140 100755 --- a/OS/01/start.sh +++ b/OS/01/start.sh @@ -46,10 +46,6 @@ start_server() { echo "Server started as process $SERVER_PID" } -# DEVICE - -# SERVER - stop_processes() { if [[ -n $DEVICE_PID ]]; then echo "Stopping device..." @@ -64,11 +60,13 @@ stop_processes() { # Trap SIGINT and SIGTERM to stop processes when the script is terminated trap stop_processes SIGINT SIGTERM +# DEVICE # Start device if DEVICE_START is True if [[ "$DEVICE_START" == "True" ]]; then start_device fi +# SERVER # Start server if SERVER_START is True if [[ "$SERVER_START" == "True" ]]; then start_server