working daemon with stdout/stderr redirected to log file