aboutsummaryrefslogtreecommitdiff
path: root/src/zen/zen.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-09-01 07:29:41 -0400
committerGitHub <[email protected]>2023-09-01 13:29:41 +0200
commita165efeaf58dc7336e40d812359b0fc2ce0e7a83 (patch)
tree6c7aa1dd0cbb7f0fa751f7bc1bff9b3e8205e1da /src/zen/zen.cpp
parent0.2.19 (diff)
downloadarchived-zen-a165efeaf58dc7336e40d812359b0fc2ce0e7a83.tar.xz
archived-zen-a165efeaf58dc7336e40d812359b0fc2ce0e7a83.zip
add `--write-config` to zenserver options (#382)
- Feature: `zen up` command has two new command line options - `--config <file_path>` tells zenserver to start with a specific config file - `--owner-pid <pid>` tells zenserver to start with a owning process id - Feature: `zen attach` command to add additional owning processes to a running zenserver instance - `--owner-pid <pid>` adds pid to running zenserver instance list of owning processes - Feature: `--write-config` command line option for zenserver - `--write-config <file_path>` path to a file which will contain a lua config file for zenserver combining all command line options and optional lua config files - Improvement: `zen up` command will check if zenserver is currently running before starting up a new instance
Diffstat (limited to 'src/zen/zen.cpp')
-rw-r--r--src/zen/zen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zen/zen.cpp b/src/zen/zen.cpp
index 204a91f74..f1cfe9796 100644
--- a/src/zen/zen.cpp
+++ b/src/zen/zen.cpp
@@ -216,6 +216,7 @@ main(int argc, char** argv)
StatusCommand StatusCmd;
TopCommand TopCmd;
UpCommand UpCmd;
+ AttachCommand AttachCmd;
VersionCommand VersionCmd;
#if ZEN_WITH_TESTS
RunTestsCommand RunTestsCmd;
@@ -263,6 +264,7 @@ main(int argc, char** argv)
{"status", &StatusCmd, "Show zen status"},
{"top", &TopCmd, "Monitor zen server activity"},
{"up", &UpCmd, "Bring zen server up"},
+ {"attach", &AttachCmd, "Add a sponsor process to a running zen service"},
{"version", &VersionCmd, "Get zen server version"},
#if ZEN_WITH_TESTS
{"runtests", &RunTestsCmd, "Run zen tests"},