This was implemented partly in server.go and partly in server_others.go even though even the parts in server.go were totally linux-specific. Simplify things by putting it all in server_others.go and get rid of some unnecessary abstraction.