Skip to content

Commit a6b8dff

Browse files
committed
Start all processes in separate process group
1 parent 006aa74 commit a6b8dff

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

run_hyperion.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,17 +220,17 @@ if [[ $START == 1 ]]; then
220220
if [[ $START_HYPERION_SUPERVISOR == 1 ]]; then
221221
h_commands+="--mode supervisor --client-config ${CLIENT_CONFIG} --supervisor-config ${SUPERVISOR_CONFIG} "
222222
echo "Starting hyperion-supervisor with hyperion $h_commands, start_log is $start_log_path"
223-
hyperion `echo $h_commands;`>$start_log_path 2>&1 &
223+
( set -m; hyperion `echo $h_commands;`>$start_log_path 2>&1 & )
224224
wait_for_healthcheck hyperion-supervisor $SUPERVISOR_HEALTHCHECK_PORT status
225225
elif [[ $MODE = "udc" ]]; then
226226
h_commands+="--mode udc "
227227
echo "Starting hyperion udc with hyperion $h_commands, start_log is $start_log_path"
228-
hyperion `echo $h_commands;`>$start_log_path 2>&1 &
228+
( set -m; hyperion `echo $h_commands;`>$start_log_path 2>&1 & )
229229
wait_for_healthcheck hyperion $HEALTHCHECK_PORT status
230230
fi
231231
if [[ $START_HYPERION_BLUEAPI == 1 || $MODE = "udc" ]]; then
232232
echo "Starting hyperion-callbacks with hyperion-callbacks $cb_commands, start_log is $callback_start_log_path"
233-
hyperion-callbacks `echo $cb_commands;`>$callback_start_log_path 2>&1 &
233+
( set -m; hyperion-callbacks `echo $cb_commands;`>$callback_start_log_path 2>&1 & )
234234
fi
235235
fi
236236

0 commit comments

Comments
 (0)