[WIP] Add restart service command for windows

This commit is contained in:
Vladimir Stoilov
2024-09-27 17:07:01 +03:00
parent 61babe2822
commit f0272766c1
5 changed files with 72 additions and 86 deletions

View File

@@ -55,10 +55,7 @@ func initialize() *service.Instance {
// Create instance.
var execCmdLine bool
instance, err := service.New(&service.ServiceConfig{
IsRunningAsService: isRunningAsService(),
DefaultRestartCommand: defaultRestartCommand,
})
instance, err := service.New(&service.ServiceConfig{})
switch {
case err == nil:
// Continue