Start and stop server as a daemon