]> git.tuebingen.mpg.de Git - dss.git/commitdiff
Allow to run in daemon mode without log file.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 29 Dec 2015 16:10:05 +0000 (16:10 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 3 Mar 2016 14:34:48 +0000 (15:34 +0100)
It's kind of silly to insist in having a log file in daemon mode.

This commit removes the dependency of --daemon on --logfile and makes
/dev/null the default log file. Consequently, running dss --daemon
--run without specifying --logfile no longer fails, and nothing will
be logged by default.

The documentation is updated accordingly.

dss.ggo

diff --git a/dss.ggo b/dss.ggo
index 5b78ddaa5724e8f6e5ef015613aefb38acf0efdc..6ac2a39d12b9eb24bd36865a7554a24b252f94af 100644 (file)
--- a/dss.ggo
+++ b/dss.ggo
@@ -38,14 +38,12 @@ option "daemon" d
 #~~~~~~~~~~~~~~~~
 "Run as background daemon"
 flag off
 #~~~~~~~~~~~~~~~~
 "Run as background daemon"
 flag off
-dependon="logfile"
 details="
 details="
-       Note that dss refuses to start in daemon mode if no logfile
-       was specified. This option is mostly useful in conjunction
-       with the -R option described below.
+       This option is mostly useful in conjunction with the -R option
+       described below.
 
 
-       Note that it is not possible to change whether dss runs as
-       background daemon by sending SIGHUP.
+       Note that it is not possible to change whether dss runs as background
+       daemon by sending SIGHUP.
 "
 
 option "dry-run" D
 "
 
 option "dry-run" D
@@ -77,10 +75,14 @@ option "logfile" -
 "Logfile for the dss daemon process"
 string typestr="filename"
 optional
 "Logfile for the dss daemon process"
 string typestr="filename"
 optional
+default="/dev/null"
 details = "
        This option is only honored if both --run and --daemon are
 details = "
        This option is only honored if both --run and --daemon are
-       given. Otherwise it is silently ignored and log output is
-       written to stderr.
+       given. Otherwise it is silently ignored and log output is written
+       to stderr.
+
+       The default value means that nothing will be logged in daemon mode
+       unless this option is given.
 "
 
 ##################
 "
 
 ##################