fix local runtime (#1383)
This commit is contained in:
parent
4c6f68d537
commit
e49be1da42
@ -184,8 +184,8 @@ func (r *runtime) Create(s *Service, opts ...CreateOption) error {
|
||||
}
|
||||
|
||||
if len(options.Command) == 0 {
|
||||
options.Command = []string{"go", "run"}
|
||||
options.Args = []string{"."}
|
||||
options.Command = []string{"go"}
|
||||
options.Args = []string{"run", "."}
|
||||
}
|
||||
|
||||
// create new service
|
||||
|
@ -72,7 +72,7 @@ func (s *service) shouldStart() bool {
|
||||
if s.running {
|
||||
return false
|
||||
}
|
||||
return s.maxRetries <= s.retries
|
||||
return s.retries <= s.maxRetries
|
||||
}
|
||||
|
||||
func (s *service) ShouldStart() bool {
|
||||
|
Loading…
Reference in New Issue
Block a user