So, I'm a little new to programming and mostly self-taught, so sorry if this question is a bit on the side of newbies.
I have a python script that runs for a long time (for example, it loads pages every few seconds for several days in a row). Sort monitoring script for web application.
Every time something so often violates it, and it needs to be restarted. I got these events at the minimum minimum, but it still happens every few days, and when he is killed, this may be bad news if I donβt notice for several hours.
He is currently working on a screen session on VPS.
Can someone point me in the right direction, as far as I know, when the script dies / and automatically restarts?
Will it write something in Bash? Or something different? I have never done anything like this before and I donβt know where to start or even look for information.
source share