-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should be able to pass additional FDs #53
Comments
@akamensky Hey man, did you get a implement now? I want the feature you mentioned too |
@sherlockblaze Nope, to get that working I would need to rewrite large part of this package. |
@akamensky I think I got it already. cntxt := &daemon.Context{
PidFileName: "pid",
PidFilePerm: 0644,
LogFileName: "log",
LogFilePerm: 0640,
WorkDir: "./",
Umask: 027,
Args: []string{"[go-daemon sample]", "test"},
} And the Args just like the command line you use. Like |
@sherlockblaze command line arguments have nothing to do with file descriptors... |
@akamensky sorry man, I misunderstood your purpose |
Right now there is not way to get additional FDs to be passed from parent to daemon.
My goal is to open TCP socket, then get FD (using TCPListener.File()), then pass that FD to the daemon and convert it back to Listener (using net.FileListener())
I think this should be totally doable and not hard to implement, so I don't see why it was not there from the start. There are more uses to this functionality than just this.
The text was updated successfully, but these errors were encountered: