22.12.2018, 13:30
This can happen if your app is either executed in background (via & at the end of the command) or daemonizes itself. Can you run your app in foreground? This way os.execute will wait until app finishes execution and only then it will be started again. This is useful if you experience crashes for some reason.