Get socket handles and then drop privs by passing handles through daemon
bmenrigh opened this issue · comments
It is possible to bind to the sockets and then drop privileges and start a daemon and pass it the file handles. This would fit in well with the existing daemonization code.
This blog post https://blog.scalingo.com/2014/12/19/graceful-server-restart-with-go.html shows how to do this with sockets. The daemon already does it with a pipe.