0

I have a nodejs application running on Apache server (Cloud Linux). The problem is that Passenger restarts the nodejs app daily at midnight, even if users are connected to the web application. I didn't find any cron asking to restart. Here is the Passenger log which is logged daily at midnight:

Checking whether to disconnect long-running connections for process 5519, application [...] (production)

Is there a way to prevent this daily restart?

Or at least to change the restart time?

Pat
  • 1
  • Hey, have you checked the folder 'tmp/sockets/' for a file called restart.txt or always_restart.txt? If one exists, remove it and the problem should go away. – Nicholas Mordecai Mar 05 '21 at 11:20
  • Thanks a lot for your answer. Actually, I tried it but it does not work. I had a ./tmp/restart.txt file and another one ./restart.txt. I removed these 2 files, but Passenger still restarts the application at midnight... – Pat Mar 08 '21 at 09:16

0 Answers0