remote_syslog icon indicating copy to clipboard operation
remote_syslog copied to clipboard

PID file is not created when passing "no detach" option (-D)

Open gregkare opened this issue 11 years ago • 0 comments

I wanted to check with you before working on a pull request to fix this, to make sure there's not something I'm missing here.

It seems the only way to make remote_syslog work with upstart is to pass the "no detach" option. I'm having problems with the init script and I can't reproduce them reliably so I'm switching to upstart. I would like to keep using monit to send alerts when remote_syslog goes down (it's been unreliable), so I need a PID file to be present.

When not running in normal mode Servolux::Server#startup creates the PID file as expected. However it's not created by RemoteSyslog::Agent#run in "no detach" mode. Is this by design?

Thanks in advance.

gregkare avatar Nov 05 '13 01:11 gregkare