aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-01-18 06:56:18 +0000
committerGravatar Sadie Powell2021-01-18 07:05:27 +0000
commita59ed4b39443eb788c15c65501898ca374387e2e (patch)
treea20c0bee867288e956d171ed733b3c7747c2a316 /include
parentFix `./configure --update` with cache files generated before v3.2. (diff)
Add a new runtime directory and move the pid file to it.
The data directory is intended for persistent files whereas the pid file is ephemeral. This distinction doesn't matter by default but on system-wide installs ephemeral runtime files go in /var/run or /run instead.
Diffstat (limited to 'include')
-rw-r--r--include/configreader.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/configreader.h b/include/configreader.h
index 3a5ea9c60..8a548fcbf 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -250,12 +250,16 @@ class CoreExport ServerConfig
/** Module path */
std::string Module;
+ /** Runtime path */
+ std::string Runtime;
+
ServerPaths(ConfigTag* tag);
std::string PrependConfig(const std::string& fn) const { return FileSystem::ExpandPath(Config, fn); }
std::string PrependData(const std::string& fn) const { return FileSystem::ExpandPath(Data, fn); }
std::string PrependLog(const std::string& fn) const { return FileSystem::ExpandPath(Log, fn); }
std::string PrependModule(const std::string& fn) const { return FileSystem::ExpandPath(Module, fn); }
+ std::string PrependRuntime(const std::string& fn) const { return FileSystem::ExpandPath(Runtime, fn); }
};
/** Holds a complete list of all connect blocks