aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/config.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-11-23 13:43:37 +0100
committerGitHub <[email protected]>2023-11-23 13:43:37 +0100
commit48f4a8bce0450263cda89d3b33fc15e32620e6f4 (patch)
treea4e28d9b3922f8934f1a01bd87b0674268620ba4 /src/zenserver/config.h
parent0.2.36-pre1 (diff)
downloadzen-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.h')
-rw-r--r--src/zenserver/config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zenserver/config.h b/src/zenserver/config.h
index c7f6e1e2a..8135bf8f0 100644
--- a/src/zenserver/config.h
+++ b/src/zenserver/config.h
@@ -142,6 +142,7 @@ struct ZenServerOptions
bool UninstallService = false; // Flag used to initiate service uninstall (temporary)
bool IsDebug = false;
bool IsCleanStart = false; // Indicates whether all state should be wiped on startup or not
+ bool IsPowerCycle = false; // When true, the process shuts down immediately after initialization
bool IsTest = false;
bool IsDedicated = false; // Indicates a dedicated/shared instance, with larger resource requirements
bool ShouldCrash = false; // Option for testing crash handling