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 {
|
if len(options.Command) == 0 {
|
||||||
options.Command = []string{"go", "run"}
|
options.Command = []string{"go"}
|
||||||
options.Args = []string{"."}
|
options.Args = []string{"run", "."}
|
||||||
}
|
}
|
||||||
|
|
||||||
// create new service
|
// create new service
|
||||||
|
@ -72,7 +72,7 @@ func (s *service) shouldStart() bool {
|
|||||||
if s.running {
|
if s.running {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return s.maxRetries <= s.retries
|
return s.retries <= s.maxRetries
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *service) ShouldStart() bool {
|
func (s *service) ShouldStart() bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user