Daemonization and logging work