summaryrefslogtreecommitdiff
path: root/lib/server/Daemon.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-10-17 12:52:05 +0000
committerChris Wilson <chris+github@qwirx.com>2007-10-17 12:52:05 +0000
commita2256be50c81f73213a6c7cc2cd64b502814c036 (patch)
tree8ff5cf406ddbdf04a6646d608cb0859ede1fbbfa /lib/server/Daemon.h
parent4b5b0815af4f478c18ee6681fe013f5213c727de (diff)
Refactor out command-line option processing, so that it can be extended
by subclasses. (merges [1849])
Diffstat (limited to 'lib/server/Daemon.h')
-rw-r--r--lib/server/Daemon.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/server/Daemon.h b/lib/server/Daemon.h
index bce6c3c1..0f6d0c73 100644
--- a/lib/server/Daemon.h
+++ b/lib/server/Daemon.h
@@ -67,12 +67,13 @@ public:
protected:
box_time_t GetLoadedConfigModifiedTime() const;
bool IsSingleProcess() { return mSingleProcess; }
+ std::string GetOptionString();
+ int ProcessOption(signed int option);
private:
static void SignalHandler(int sigraised);
box_time_t GetConfigFileModifiedTime() const;
-private:
std::string mConfigFileName;
Configuration *mpConfiguration;
box_time_t mLoadedConfigModifiedTime;
@@ -81,6 +82,8 @@ private:
bool mSingleProcess;
bool mRunInForeground;
bool mKeepConsoleOpenAfterFork;
+ bool mHaveConfigFile;
+ int mLogLevel; // need an int to do math with
static Daemon *spDaemon;
};