In the Node Red flow, killall play is sometimes returning an error, presumably because the command returns a non-zero exit code if there's no process to be killed by that name. I'm concerned that this might be messing up the Node Red flow. I suggest the error handling on that node be disabled, or the exit code 1 be ignored and considered as a success. It might also be good to add the -w command-line switch to make the command block until the process is actually killed before moving on with the flow.
In the Node Red flow,
killall play
is sometimes returning an error, presumably because the command returns a non-zero exit code if there's no process to be killed by that name. I'm concerned that this might be messing up the Node Red flow. I suggest the error handling on that node be disabled, or the exit code1
be ignored and considered as a success. It might also be good to add the-w
command-line switch to make the command block until the process is actually killed before moving on with the flow.