Merge pull request #14939 from shanesmith/fix-keep-alive-sample-code

Fix keep_alive sample code in formula cookbook
This commit is contained in:
Mike McQuaid 2023-03-15 12:31:32 -04:00 committed by GitHub
commit 5a0cdaa749
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -965,7 +965,7 @@ Same as above in hash form:
```ruby
service do
run [opt_bin/"beanstalkd", "test"]
keep_alive { always: true }
keep_alive always: true
end
```
@ -974,7 +974,7 @@ Keep alive until the service exits with a non-zero return code:
```ruby
service do
run [opt_bin/"beanstalkd", "test"]
keep_alive { succesful_exit: true }
keep_alive succesful_exit: true
end
```
@ -983,7 +983,7 @@ Keep alive only if the job crashed:
```ruby
service do
run [opt_bin/"beanstalkd", "test"]
keep_alive { crashed: true }
keep_alive crashed: true
end
```
@ -992,7 +992,7 @@ Keep alive as long as a file exists:
```ruby
service do
run [opt_bin/"beanstalkd", "test"]
keep_alive { path: "/some/path" }
keep_alive path: "/some/path"
end
```