-
Notifications
You must be signed in to change notification settings - Fork 569
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
Ability to specify the pidfile via args in FreeBSD #20
Comments
@olevole I was thinking I would add a parameter named |
@tidwall Absolutely! Currenlty, i've made rc.d script for FreeBSD: where i got pid from daemon(8). It is necessary for correct stop command; with --pidfile tile38 would be self-sufficient for rc.d subsystem. |
@olevole Apparently daemonizing a Go app is a little more challenging that I expected. I was hoping for a simple solution by just forking and rerouting logging and such. But fork and posix threads don't always play well with Goroutines. It sometimes works, but isn't totally stable. There's a whole long discussion about it dating back to 2009. golang/go#227 There may still be a way yet, but it may take more tinkering on my side. Sorry for the delay on this. I'll keep you posted when I find a stable solution. |
Thank you very much! |
You're welcome and sorry about the delay. |
Currently the pidfile must be managed outside the application. Adding an arg to the startup process will streamline this process. See #19.
The text was updated successfully, but these errors were encountered: