mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 08:46:41 +01:00
This commit is contained in:
parent
cf1a29908a
commit
bc29f30e5c
@ -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)));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user