Hi @rquant, I personally would do it with a script, like this one in balenaDash: https://github.com/balena-io-projects/balena-dash/blob/master/scheduler/scripts/start.sh
I’m wondering if when you’re adding two there’s some kind of race condition happening that’s avoided by using a script; the above has always worked reliably in my experience.