diff options
| author | Patrick Venture <venture@google.com> | 2019-02-14 10:59:47 -0800 |
|---|---|---|
| committer | Patrick Venture <venture@google.com> | 2019-02-14 11:17:53 -0800 |
| commit | c19f5d4de87ea40d99403cf138c5df222a797c3c (patch) | |
| tree | 5267eb48fdc4f4af982ed33315f4ac6cd03cc97c | |
| parent | f72ad441408ffb671c412c9f79795236c0ea5e54 (diff) | |
| download | phosphor-pid-control-c19f5d4de87ea40d99403cf138c5df222a797c3c.tar.gz phosphor-pid-control-c19f5d4de87ea40d99403cf138c5df222a797c3c.zip | |
main: add json configuration path
If swampd is compiled to check for its configuration at run-time, it
will check one specific path.
Change-Id: I5c37ccbb2229db742c0f43b3d9ee0c368df19479
Signed-off-by: Patrick Venture <venture@google.com>
| -rw-r--r-- | main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -52,6 +52,9 @@ extern std::map<int64_t, PIDConf> zoneConfig; /* The YAML converted Zone configuration. */ extern std::map<int64_t, struct ZoneConfig> zoneDetailsConfig; +/** the swampd daemon will check for the existence of this file. */ +constexpr auto jsonConfigurationPath = "/usr/share/swampd/config.json"; + int main(int argc, char* argv[]) { int rc = 0; |

