go-daemon icon indicating copy to clipboard operation
go-daemon copied to clipboard

Option for passing PID file as FD instead of filename string?

Open akamensky opened this issue 5 years ago • 1 comments

Right now PID is passed as filename string, and this limits what can be done with PID.

I think it would be good idea to give an option to pass PID or filename, if filename, then system takes care of making a PID file and locking it, otherwise it would be up to the developer to do that.

akamensky avatar Feb 03 '19 05:02 akamensky

You are right. Good idea. But it is not simply to implement safe. And implementation of v2 is not going well as i want.

sevlyar avatar Mar 09 '19 08:03 sevlyar