Checking in daemonization, writing to a logfile, and saving the pid