]> git.tuebingen.mpg.de Git - dss.git/blobdiff - dss.c
Merge branch 't/logfile_only_for_daemon'
[dss.git] / dss.c
diff --git a/dss.c b/dss.c
index db065c689b95dc0274231c9923cb9be6dd852839..b4ad2d28960a3c89e9b489d365f45ffed1376e8e 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -964,7 +964,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);
        }