mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-06-28 20:25:20 +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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user