I. Hola Alfredo, perdone que de nuevo le responda sin conocer este tema, no soy conocedor ni logré ver información del todo válida sobre su consulta pero deseaba dejarle lo que ví y en especial ofrecerme para trasladar su consulta a un programador en caso de que no reciba respuestas durante la semana.
Siento todas las molestias de lectura y la manera de contestarle. Ánimo.
https://stackoverflow.com/questions/696839/how-do-i-write-a-bash-script-to-restart-a-process-if-it-dies
https://stackoverflow.com/questions/4797050/how-to-run-node-js-as-a-background-process-and-never-die
https://stackoverflow.com/questions/7363936/how-do-i-keep-a-python-http-server-up-forever
https://stackoverflow.com/questions/687948/how-to-run-a-command-with-a-timeout-so-that-it-is-killed-if-it-exceeds-the-timeo
https://stackoverflow.com/questions/55462226/how-can-i-keep-a-python-script-on-a-remote-server-running-after-closing-out-of-s
https://www.reddit.com/r/Python/comments/17fn6jv/python_script_stops_working_after_few_hours/?tl=es-419
https://www.reddit.com/r/learnpython/comments/1bwufah/most_effective_way_to_keep_a_python_script_always/
https://serverfault.com/questions/522349/how-to-prevent-termination-of-long-running-python-script
https://stackoverflow.com/questions/12647196/how-do-i-shut-down-a-python-simplehttpserver
https://stackoverflow.com/questions/13998496/python-script-stopping-after-a-while
https://stackoverflow.com/questions/27810561/why-is-my-python-app-stalled-with-system-kernel-cpu-time
https://unix.stackexchange.com/questions/167972/why-does-my-python-background-process-end-when-ssh-session-is-terminated
https://es.stackoverflow.com/questions/37311/verificar-que-un-script-en-python-se-est%C3%A9-ejecutando-y-que-si-no-lo-est%C3%A1-se-eje
https://www.reddit.com/r/sysadmin/comments/148iq8u/python_process_killed_after_i_close_my_ssh/?tl=es-419
https://www.reddit.com/r/learnpython/comments/1e9runq/long_running_python_process_randomly_exitting/?tl=es-419
https://docs.python.org/es/3.13/library/multiprocessing.html