mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-11-08 10:07:01 +00:00
server : add pidfile option
So we can track the pid of this process Signed-off-by: Eric Curtin <ecurtin@redhat.com>
This commit is contained in:
@@ -3373,5 +3373,9 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
|
||||
}
|
||||
).set_examples({LLAMA_EXAMPLE_SERVER}));
|
||||
|
||||
add_opt(common_arg({ "--pidfile" }, "FILE", "path to PID file for server process",
|
||||
[](common_params & params, const std::string & value) { params.pidfile = value; })
|
||||
.set_examples({ LLAMA_EXAMPLE_SERVER }));
|
||||
|
||||
return ctx_arg;
|
||||
}
|
||||
|
||||
@@ -366,6 +366,7 @@ struct common_params {
|
||||
std::string hostname = "127.0.0.1";
|
||||
std::string public_path = ""; // NOLINT
|
||||
std::string chat_template = ""; // NOLINT
|
||||
std::string pidfile = ""; // path to PID file for server process // NOLINT
|
||||
bool use_jinja = false; // NOLINT
|
||||
bool enable_chat_template = true;
|
||||
common_reasoning_format reasoning_format = COMMON_REASONING_FORMAT_DEEPSEEK;
|
||||
|
||||
Reference in New Issue
Block a user