Hack that generates a pifile to to /var/run providing a standard way for others tools like monit to check processs status.
Upstart pidfile generation
This pull request fails (merged b3448b4 into e06d36b).
Another more elegant solution would be using the start-stop-daemon script in the exec line. It may have some changes. I can test if you want
I'd be interested in seeing a pull request that uses start-stop-daemon
So after trying a lot, i got to these 2 points that make using start-stop-deamon a problem:
Start-stop-daemon can only be run as root (it can start the process itself as any user tough), that means that the upstart script needs to be started as root, that might be an impedance for some use cases.
I failed to export ENV vars sucefully with it
Either way I think that should be possible to change location, would you be intrested if i add flag to set the pidfile path ? Since it will cause permission problems for some uses cases (as the travis builder says)
I would prefer not to add export flags that are specific to a given exporter.
Perhaps you could have this be configurable via environment variable?
Thanks for the pull request, but I'm going to close it in favor of simplicity. I'm trying not to add exporter-specific arguments.