-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Implement systemd notification #7028
Comments
Should be implemented in above PR (make a note for my own reference). |
Implemented using a cleaner dep, and also notifying on shutdown/config reload: #11517 |
@astorath can you confirm if the merged changes already accommodate for what you were after within the latest 1.7.x or higher releases? |
@sgmiller Thank you for implementation. Some logs...
|
This was fixed in #11517 and should've been closed then. Closing. |
…g config #7028 (#15041) (#15269) Co-authored-by: Alexander Tischenko <[email protected]>
…g config #7028 (#15041) (#15267) Co-authored-by: Alexander Tischenko <[email protected]>
…ted reloading config #7028 into release/1.10.x (#15265) * backport of commit d230c83 * backport of commit 56fba39 Co-authored-by: Alexander Tischenko <[email protected]> Co-authored-by: Nick Cabatoff <[email protected]>
Is your feature request related to a problem? Please describe.
Using vault binary as a systemd unit have some control problem:
So when service starts unsuccessfully (due to config error for instance), systemctl can't report the problem right away and systemd keeps restarting failing unit forever.
Describe the solution you'd like
I think the best solution is to implement systemd notification when vault (or vault agent) is ready to accept requests.
Example from consul: agent.go
Describe alternatives you've considered
I've implemented a simple bash wrapper to check for active port after vault startup. This is a dirty solution:
Explain any additional use-cases
You can implement WATCHDOG notification to make systemd monitor unit health.
Additional context
I see that
github.com/coreos/go-systemd
module is invault/vendor/modules.txt
Line 185 in ceb4aea
vault/go.sum
Line 104 in 0a58f30
The text was updated successfully, but these errors were encountered: