pusher / crank

Process slow restarter
http://pusher.github.io/crank/man/
MIT License
38 stars 3 forks source link

Added datagram socket support #31

Closed hannesg closed 8 years ago

hannesg commented 8 years ago

Hi

I'd like to run a custom dns server with crank. I think supporting datagram sockets would be useful feature.

Cheers' Hannes

zimbatm commented 8 years ago

Thanks @hannesg

zimbatm commented 8 years ago

I think it's valid, you might also want to take a look at opening the port with SO_REUSEADDR and not binding with crank.

hannesg commented 8 years ago

Thanks!

Yeah would be an option. For servers like dns that work with udp and tcp I'm currently trying to just pass them whatever socket type I want and let the service not care about such details.

zimbatm commented 8 years ago

Yeah both work, it's good to have options :) Let me know when you have it deployed, it would be interesting to make an article on that.