Fix daemonize option
Merge pull request #1048 from tohae/fix_daemon

Fix daemonize option