Answer the question
In order to leave comments, you need to log in
How to trace python exception of running service on VDS server?
I rented a mini-server, launched a telegram bot on it as a service, so that it would restart automatically if it crashes.
He fell down the first night and didn't get up. How can I see on the server what error caused it to stop working?
In the terminal, of course, there is nothing. the script is running as a service.
Answer the question
In order to leave comments, you need to log in
Use some kind of process manager, such as supervisord, which will keep logs and restart the fallen one.
In the terminal, of course, there is nothing. the script is running as a service.
so that it restarts automatically if it crashes
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question