[WIP] Add restart command to instance
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user