Run server as a daemon. Write pid file to disk