From 9cd7a2e54683a05d175a86e901f2f0df7d680902 Mon Sep 17 00:00:00 2001 From: Chris Novakovic Date: Mon, 4 Jun 2018 12:40:32 +0100 Subject: 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 tag in the configuration file or the value of its "file" variable if it is present.--- include/configreader.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include') 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 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 + * tag is not defined in the config file. + */ + bool writepid; + /** Saved argc from startup */ int argc; -- cgit v1.3.1-10-gc9f91