Ubuntu server process keeps shutting down after some time
0
votes
0
answers
511
views
I've been starting a web server process using
nohup
on a hosted Ubuntu 22.04.02 LTS VPS (virtual private server) to make it run in the background and keep it running even if the SSH session is disconnected. However, I noticed numerous times now that the process random stops at some point and I had to re-run it the next day. I'm pretty sure my process didn't crash since I'm using Java and on my local machine it runs indefinitely just fine. The same issue happened with a C++ process and again, locally it never showed any signs of crashes. Is there anything that could cause this issue and what would be the best way to resolve it? I assume it's not related to the hosting only since I have root access.
I've considered using immortal
to automatically restart the process when it died which worked but that's not an optimal solution, either, I just want the process to run indefinitely as expected.
Asked by BullyWiiPlaza
(101 rep)
May 29, 2023, 08:21 AM