zapty / forever-service

Provision node script as a service via forever, allowing it to automatically start on boot, working across various Linux distros and OS
https://github.com/zapty/forever-service
MIT License
594 stars 65 forks source link

Service stops working after some hours without any error messages #100

Closed kameceres closed 6 years ago

kameceres commented 6 years ago

Dear, I installed nodejs server as a service, and the service works perfectly each time I do start or restart. Nodejs server is using 'mysql-events' to monitor changes on database, and 'mysql' to query needed data before emitting.

After some hours working, it does not emit any more. I have checked log files in /var/log but could not find any error messages.

'mysql-events' uses bin log, and my server also have master-master database configured that is also using the bin log.

Do you have any ideas about why it stops working like this?

Regards.

arvind-agarwal commented 6 years ago

The scope of forever-service is limited to just to wrap services around a startup script. So if services are starting it is working as expected. There could be several reasons why a process could stop working. I guess you have to debug your program and see why it could be happening.