Skip to content

ServerApplication has no pidfile option on windows #4559

@aleks-f

Description

@aleks-f
  • Add /pidfile option on Windows

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)));

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions