Add PID file to the daemon.