Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix keep_alive sample code in formula cookbook #14939

Merged
merged 2 commits into from Mar 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/Formula-Cookbook.md
Expand Up @@ -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
```

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

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

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

Expand Down