Emergency Stop kills running process
-
@chrishamm I'm running Duet Pi 3.4rc2 and I have a monitor hooked up to the Pi with it configured to automatically run a script at boot - it's scrolling the gcode in realtime to the screen via CodeLogger, from the
pi
user. Purely for funI've noticed that if I hit emergency stop or restart the controller (but not the Pi of course, like after modifying config.g) that the script process is killed.
I've looked around in the DSF code to see if something obvious jumped out that would cause that to happen but I'm at a loss. Anything that you are aware of that would cause that?
-
@adammhaile is the script being killed, or is it dying because the API is down during the emergency stop cycle? could you catch errors and then restart codelogger?
-
@adammhaile @T3P3Tony This behaviour is deliberate. Early versions of DSF didn't terminate on reset but we decided to change it for safety reasons. If you want to keep DCS alive once M997 or M999 is processed, you can still change
NoTerminateOnReset
in/opt/dsf/conf/config.json
fromfalse
totrue
. -
@t3p3tony oh - damn... The instance of CodeLogger I'm running is quitting when the API goes down, isn't it?
I wasn't getting any errors at all which I thought was because the script was somehow being killed - but that could've done it too. Would have though it would just keep running.
Will add a wait and retry to it.
Thanks!