I have a long-running cron process, running a Python script, that seems to get randomly killed. In dmesg
I see:
[230568.077358] init: cron main process (890) killed by TERM signal
[237517.974422] init: cron main process (19598) killed by TERM signal
How do I stop this from happening? I tried running the process via a lower nice value, e.g.
* * * * * nice -n 10 bash -c "/usr/local/myproject/myscript.py"
but it still gets killed. How do I diagnose and fix this?