From: Andre Noll Date: Tue, 29 Dec 2015 16:10:05 +0000 (+0000) Subject: Allow to run in daemon mode without log file. X-Git-Tag: v0.1.7~20 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=d13861de884e6d76fb854d1869e7c4373d619b6e;p=dss.git Allow to run in daemon mode without log file. 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. --- diff --git a/dss.ggo b/dss.ggo index 5b78dda..6ac2a39 100644 --- a/dss.ggo +++ b/dss.ggo @@ -38,14 +38,12 @@ option "daemon" d #~~~~~~~~~~~~~~~~ "Run as background daemon" flag off -dependon="logfile" 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 @@ -77,10 +75,14 @@ option "logfile" - "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 - 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. " ##################