From 11c4f262a6487b048265af9b10a6be70d6cf2788 Mon Sep 17 00:00:00 2001 From: Martin Rys Date: Sat, 21 Sep 2024 20:54:36 +0200 Subject: [PATCH] run.sh: Allow starting the daemon in debug mode if specifying 'debug' as an optional parameter --- run.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index 95325a94..bb93ed38 100755 --- a/run.sh +++ b/run.sh @@ -116,6 +116,9 @@ export PATH="${SCRIPTS}":"${PATH}" export PYTHONPATH=".":"${PYTHONPATH-}" export SCC_SHARED="$(pwd)" -# Execute -#python3 'scripts/scc-daemon' debug & -python3 'scripts/sc-controller' $@ +# Start either the daemon in debug mode if first parameter is 'debug', or the regular sc-controller app +if [[ ${1-} == 'daemon' ]]; then + python3 'scripts/scc-daemon' debug +else + python3 'scripts/sc-controller' $@ +fi