Fix keep_alive sample code in formula cookbook
This commit is contained in:
parent
cb5e8298a2
commit
d8f7e633f2
@ -965,7 +965,7 @@ Same as above in hash form:
|
|||||||
```ruby
|
```ruby
|
||||||
service do
|
service do
|
||||||
run [opt_bin/"beanstalkd", "test"]
|
run [opt_bin/"beanstalkd", "test"]
|
||||||
keep_alive { always: true }
|
keep_alive always: true
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -974,7 +974,7 @@ Keep alive until the service exits with a non-zero return code:
|
|||||||
```ruby
|
```ruby
|
||||||
service do
|
service do
|
||||||
run [opt_bin/"beanstalkd", "test"]
|
run [opt_bin/"beanstalkd", "test"]
|
||||||
keep_alive { succesful_exit: true }
|
keep_alive succesful_exit: true
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -983,7 +983,7 @@ Keep alive only if the job crashed:
|
|||||||
```ruby
|
```ruby
|
||||||
service do
|
service do
|
||||||
run [opt_bin/"beanstalkd", "test"]
|
run [opt_bin/"beanstalkd", "test"]
|
||||||
keep_alive { crashed: true }
|
keep_alive crashed: true
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -992,7 +992,7 @@ Keep alive as long as a file exists:
|
|||||||
```ruby
|
```ruby
|
||||||
service do
|
service do
|
||||||
run [opt_bin/"beanstalkd", "test"]
|
run [opt_bin/"beanstalkd", "test"]
|
||||||
keep_alive { path: "/some/path" }
|
keep_alive path: "/some/path"
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user