]> git.tuebingen.mpg.de Git - dss.git/blobdiff - dss.c
Use logfile only for --run --daemon.
[dss.git] / dss.c
diff --git a/dss.c b/dss.c
index 531beb60508045a3f40e983b80edc7102a3f4c26..e32e7e20a1efcad97f213b7da6212bb881ccc248 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -884,7 +884,7 @@ static int parse_config_file(int override)
                        conf.logfile_given = 1;
                }
        }
-       if (conf.logfile_given) {
+       if (conf.logfile_given && conf.run_given && conf.daemon_given) {
                logfile = open_log(conf.logfile_arg);
                log_welcome(conf.loglevel_arg);
        }