Hi ALUG,
I have a Python script which seg faults occasionally. Its running on a server so I don't pay it much attention and the seg faults don't matter particularly. But I would like it to be running most of the time.
Does anyone know of a way of making it automatically start again after it has crashed? I guess its kind of like respawning but I don't think I want init to be in control of it.
I guess I could write another script which keeps an eye on the first script's pid and restarts the script when the pid disappears. But before I do, I was wondering if there's a more automatic or more elegant way of doing it?
Cheers, Richard