Skip to content

Commit

Permalink
run.sh: Allow starting the daemon in debug mode if specifying 'debug'…
Browse files Browse the repository at this point in the history
… as an optional parameter
  • Loading branch information
C0rn3j committed Sep 21, 2024
1 parent 8288437 commit 11c4f26
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 11c4f26

Please sign in to comment.