[WIP] Add restart command to instance

This commit is contained in:
Vladimir Stoilov
2024-09-26 13:51:42 +03:00
parent c9631daa3e
commit 61babe2822
15 changed files with 81 additions and 98 deletions

View File

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