I have a python daemon that runs on linux. I'm implementing an auto updating functionality which works this way:
- When new version is detected, the app invokes updater script using subprocess.call.
- Child process (which is updater script in reality) stops the daemon
- Because the daemon is stopped, updater script also terminates :/
So my question is how can I launch updater script in a way that it won't depend on parent process. In other words, I don't want parent process termination to cause child process termination.
Environment: Linux mint 16
Python 3.3
Thanks