daemon uses log file instead of stdout and stderr.