Description
options.addOption (
Option (" registerService" s, " " s, " Register the application as a service." s)
.required (false )
.repeatable (false )
.callback (OptionCallback<ServerApplication>(this , &ServerApplication::handleRegisterService)));
options.addOption (
Option (" unregisterService" s, " " s, " Unregister the application as a service." s)
.required (false )
.repeatable (false )
.callback (OptionCallback<ServerApplication>(this , &ServerApplication::handleUnregisterService)));
options.addOption (
Option (" displayName" s, " " s, " Specify a display name for the service (only with /registerService)." s)
.required (false )
.repeatable (false )
.argument (" name" s)
.callback (OptionCallback<ServerApplication>(this , &ServerApplication::handleDisplayName)));
options.addOption (
Option (" description" s, " " s, " Specify a description for the service (only with /registerService)." s)
.required (false )
.repeatable (false )
.argument (" text" s)
.callback (OptionCallback<ServerApplication>(this , &ServerApplication::handleDescription)));
options.addOption (
Option (" startup" s, " " s, " Specify the startup mode for the service (only with /registerService)." s)
.required (false )
.repeatable (false )
.argument (" automatic|manual" s)
.callback (OptionCallback<ServerApplication>(this , &ServerApplication::handleStartup)));
Reactions are currently unavailable
You can’t perform that action at this time.
/pidfileoption on Windowspoco/Util/src/ServerApplication.cpp
Lines 363 to 394 in 4552df2