cloudflare / tableflip

Graceful process restarts in Go
BSD 3-Clause "New" or "Revised" License
2.88k stars 147 forks source link

support unix socket #32

Closed baixiaoshi closed 4 years ago

baixiaoshi commented 5 years ago

can you give a example for unix socket?

lmb commented 5 years ago

Hi!

You should be able to just use (Fds.Listen)[https://godoc.org/github.com/cloudflare/tableflip#Fds.Listen]. Something like Listen("unix", "/path/to/socket") should work. Keep in mind that you might have to remove /path/to/socket if a previous instance of your program crashed.

Does that answer your question?

lmb commented 5 years ago

@baixiaoshi I'm going to assume that the above helped, so if you don't mind I'll go ahead and close this issue.