Corrected example for running as a daemon.