Fix keep_alive sample code in formula cookbook

This commit is contained in:
Shane Smith 2023-03-09 15:28:00 -05:00
parent cb5e8298a2
commit d8f7e633f2
No known key found for this signature in database
GPG Key ID: 1979307CCBF452DA

View File

@ -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
``` ```