I've bought a VDS server some days ago just to have some Telegram Bots working 24/7.
I can't keep shell always open, so I've decided to use this "hack":
1. In Python script add #!/usr/bin/python3.4
2.
sudo chmod u+x mybot.py
sudo nohup ./mybot.py &
Script successfully starts and works fine, however, in 8-10 hours it eventually stops responding! I see it in ps -aux
output though.
To be sure that this is VDS's problem, I've started bots on my ODroid-C1 micro-computer for a day. No problems found, both scripts worked normal.
The main problem is that I can't figure out, why exactly these bots on VDS stop responding. Is there any way to find out?
P.S. Both ODroid and VDS have Ubuntu 14.04 installed.