diff options
| author | Stefan Boberg <[email protected]> | 2023-11-23 13:43:37 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-23 13:43:37 +0100 |
| commit | 48f4a8bce0450263cda89d3b33fc15e32620e6f4 (patch) | |
| tree | a4e28d9b3922f8934f1a01bd87b0674268620ba4 /src/zenserver/config.cpp | |
| parent | 0.2.36-pre1 (diff) | |
| download | zen-48f4a8bce0450263cda89d3b33fc15e32620e6f4.tar.xz zen-48f4a8bce0450263cda89d3b33fc15e32620e6f4.zip | |
added --powercycle option (#565)
* added --powercycle option. when this is passed in the zenserver process will shut down immediately after initialization is complete. This is primarily useful when benchmarking init/cleanup but could also be used to verify/clean up disk state
* moved EmptyStandbyList code to make it accessible to more commands
Diffstat (limited to 'src/zenserver/config.cpp')
| -rw-r--r-- | src/zenserver/config.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/zenserver/config.cpp b/src/zenserver/config.cpp index 3640abfaf..92d6c7f7d 100644 --- a/src/zenserver/config.cpp +++ b/src/zenserver/config.cpp @@ -960,6 +960,9 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions) "Specify a snapshot of server state to mirror into the persistence root at startup", cxxopts::value<std::string>(BaseSnapshotDir)); options.add_options()("content-dir", "Frontend content directory", cxxopts::value<std::string>(ContentDir)); + options.add_options()("powercycle", + "Exit immediately after initialization is complete", + cxxopts::value<bool>(ServerOptions.IsPowerCycle)); options.add_options()("abslog", "Path to log file", cxxopts::value<std::string>(AbsLogFile)); options.add_options()("config", "Path to Lua config file", cxxopts::value<std::string>(ConfigFile)); options.add_options()("write-config", "Path to output Lua config file", cxxopts::value<std::string>(OutputConfigFile)); |