Open pgouv opened 7 years ago
Where do you get this output? STDOUT? STDERR?
Does your script get stopped as it should and is the .pid file correctly removed? Can you confirm that the monitor process terminates correctly?
Hi,
We're getting the same exact SIGTERM errors.
Our .pid file gets removed correctly, and the monitor process and script terminate. Any ideas what could be causing this?
So far, unfortunately, not. Any chance you can prepare a minimal example that shows this behaviour? This would be very helpful for me for testing.
I will create a repo with this. With little digging this error seems to occur with monitoring. My guess is since watch is a never ending loop with sleep, when app is terminated due to SIGTERM , exception is caught and logged here https://github.com/thuehlinger/daemons/blob/master/lib/daemons/monitor.rb#L65
When I am trying to stop I get this message written: Config: