Start the Windows service right after install (parity with enable --now)
This commit is contained in:
@@ -172,6 +172,10 @@ func Install(configPath string, copyBin bool) error {
|
|||||||
s.Delete() // roll back so a retry starts clean
|
s.Delete() // roll back so a retry starts clean
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
// Best effort: start now instead of waiting for the next boot. A
|
||||||
|
// missing config (no consumer URLs) fails the start; the service stays
|
||||||
|
// registered and can be started once the config exists.
|
||||||
|
s.Start()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user