Fix restart button on Windows
This commit is contained in:
@@ -22,11 +22,13 @@ var (
|
|||||||
Short: "Run the Portmaster Core as a Windows Service",
|
Short: "Run the Portmaster Core as a Windows Service",
|
||||||
RunE: runAndLogControlError(func(cmd *cobra.Command, args []string) error {
|
RunE: runAndLogControlError(func(cmd *cobra.Command, args []string) error {
|
||||||
return runService(cmd, &Options{
|
return runService(cmd, &Options{
|
||||||
|
Name: "Portmaster Core Service",
|
||||||
Identifier: "core/portmaster-core",
|
Identifier: "core/portmaster-core",
|
||||||
ShortIdentifier: "core",
|
ShortIdentifier: "core",
|
||||||
AllowDownload: true,
|
AllowDownload: true,
|
||||||
AllowHidingWindow: false,
|
AllowHidingWindow: false,
|
||||||
NoOutput: true,
|
NoOutput: true,
|
||||||
|
RestartOnFail: true,
|
||||||
}, args)
|
}, args)
|
||||||
}),
|
}),
|
||||||
FParseErrWhitelist: cobra.FParseErrWhitelist{
|
FParseErrWhitelist: cobra.FParseErrWhitelist{
|
||||||
|
|||||||
Reference in New Issue
Block a user