diff options
author | Chris Novakovic <chrisnovakovic@users.noreply.github.com> | 2018-06-04 12:40:32 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-06-04 12:40:32 +0100 |
commit | 9cd7a2e54683a05d175a86e901f2f0df7d680902 (patch) | |
tree | 7b97185360a1b0a6ad46e7d88ebe97ebf005fa27 /include/configreader.h | |
parent | 2772c2fa2d51de376d84dd3674c7c0214f570469 (diff) |
Add --nopid command line option (#1497).
Add a --nopid command line option, which causes a PID file not to be
written to the file system regardless of the presence of the <pid> tag
in the configuration file or the value of its "file" variable if it is
present.
Diffstat (limited to 'include/configreader.h')
-rw-r--r-- | include/configreader.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configreader.h b/include/configreader.h index 460fd342c..be5c582b9 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -146,6 +146,18 @@ struct CommandLineConf */ bool writelog; + /** If this is true, a PID file will be written + * to the file given in the "file" variable of + * the <pid> tag in the config file. This is + * the default. + * Passing --nopid as a command line argument + * sets this to false; in this case, a PID file + * will not be written, even the default PID + * file that is usually written when the <pid> + * tag is not defined in the config file. + */ + bool writepid; + /** Saved argc from startup */ int argc; |