Daemonize and pidfile
Daemonize and pidfile

Default behaviour is to detach from the terminal and run in daemon
mode. This can be changed with the foreground command line flag.

In any mode the PID of the service is stored in a pidfile.

reidrac/swift-nbd-server