end(ServerApplication): Add --pid option to ServerApplication on Windows. (#4559) (#4567)

This commit is contained in:
Matej Kenda 2024-06-02 03:08:18 +02:00 committed by GitHub
parent cf1a29908a
commit bc29f30e5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -392,6 +392,13 @@ void ServerApplication::defineOptions(OptionSet& options)
.repeatable(false)
.argument("automatic|manual"s)
.callback(OptionCallback<ServerApplication>(this, &ServerApplication::handleStartup)));
options.addOption(
Option("pidfile"s, ""s, "Write the process ID of the application to given file."s)
.required(false)
.repeatable(false)
.argument("path")
.callback(OptionCallback<ServerApplication>(this, &ServerApplication::handlePidFile)));
}