I need to run python script 24/7 in screen . But my script got "terminated" and stopped.
I don't know why my script is stopped and show only "Terminated" message without getting any error message.
Therefore I run strace -p 253141
in another screen. I got the below message when the python script receive "Terminated".
pselect6(0, NULL, NULL, NULL, {tv_sec=0, tv_nsec=0}, NULL) = 0 (Timeout)
pselect6(0, NULL, NULL, NULL, {tv_sec=0, tv_nsec=0}, NULL) = 0 (Timeout)
pselect6(-514, NULL, NULL, NULL, {tv_sec=0, tv_nsec=15232515}, NULL <unfinished ...>
--- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=253891, si_uid=1000} ---
<... pselect6 resumed> <unfinished ...>) = ?
+++ killed by SIGTERM +++
May I know why my python script stopped?
How can I troubleshoot the root cause?
How can I solve this issue?