I have a long running python script that keeps getting interrupted by battery issues or my own stupidity. I can use (CTRL-Z) to stop the process and then fg
to restart it, but as far as I can tell that will only work if I am in the same session and it hasn't been logged out.
Is there a way to deep stop the process so I can restart it at a later time after a logout without having to start from the beginning?