Temporarily stopping python -OO /AstroBox/run from respawning

Love Astrobox on my Taz 4!

The Taz 4 makes it easy to unmount and remount hot ends via its single-screw self-centering tool head. However, since Marlin does not support changing thermistor tables via GCode, I have to re-flash firmware each time I change the hot end.

It’s relatively easy to get the Arduino IDE onto the Astrobox and do firmware uploads using ino at the command line over SSH, however I have to disable the AstroBox server during that time so it doesn’t grab the serial port while I’m uploading firmware.

(A “Disconnect” feature from the web UI would be great for this, although I don’t know how many other people would also be flashing firmware from their AstroBox.)

If I kill AstroBox’s python process at the command line, that does free up the serial port (/dev/ttyACM0) so that I can begin the upload, but in less than a minute, the process will get respawned and take over the serial port, causing the firmware upload to get aborted.

Is there a way to temporarily suspend whatever watchdog mechanism is respawning the process?

Thanks!

You can write

sudo service astrobox stop

So easy, I should’ve guessed that service name.

Thanks!

1 Like