thuehlinger / daemons

Ruby daemons gem official repository
MIT License
648 stars 71 forks source link

Make daemon start silent #46

Closed lmrodriguezr closed 7 years ago

lmrodriguezr commented 8 years ago

Hello,

Is there any supported option (or plans to support an option) to tell daemons to run quietly? Usually the "...: process with pid ... started." and "...: trying to stop process with pid..." messages are very useful, but in some cases (e.g. unit testing) it would be great if I could turn them off. It's not a high-priority enhancement, but I would imagine is not very hard to implement.

I use this trick into my tests (for other modules), but combining fork and daemons with stdout capturing is not really a good idea. Actually, the unit test jumps to the ensure of the method if I do it.

Thanks! --Miguel.

thuehlinger commented 8 years ago

Have you trieded to :shush option?

lmrodriguezr commented 8 years ago

No, I didn't see it in the docs. How do I pass it? I just tried :shush=>true but it doesn't seem to have any effect.

thuehlinger commented 8 years ago

The :shush option should now work in the latest release (v1.2.4).

lmrodriguezr commented 8 years ago

Great! Thanks!