[PR #7008] [MERGED] Handle SIGTERM and SIGQUIT shutdown signals. #36981

Closed
opened 2026-07-13 21:30:49 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/7008
Author: @0x484558
Created: 3/24/2026
Status: Merged
Merged: 4/5/2026
Merged by: @dani-garcia

Base: mainHead: main


📝 Commits (2)

  • c681ad8 handle more shutdown signals
  • 7272aff disable Rocket's built-in signal handlers

📊 Changes

1 file changed (+35 additions, -5 deletions)

View changed files

📝 src/main.rs (+35 -5)

📄 Description

By default, graceful shutdown is wired to ctrl_c() which only handles SIGINT. Service can also be terminated with SIGQUIT and SIGTERM and without handling them, the app will not terminate gracefully.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/7008 **Author:** [@0x484558](https://github.com/0x484558) **Created:** 3/24/2026 **Status:** ✅ Merged **Merged:** 4/5/2026 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`c681ad8`](https://github.com/dani-garcia/vaultwarden/commit/c681ad8ac2bcbf5a01aae8b59bc7e364b94eb965) handle more shutdown signals - [`7272aff`](https://github.com/dani-garcia/vaultwarden/commit/7272aff6dff7ef7f7a15ac7e56574a576e4c31c2) disable Rocket's built-in signal handlers ### 📊 Changes **1 file changed** (+35 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/main.rs` (+35 -5) </details> ### 📄 Description By default, graceful shutdown is wired to `ctrl_c()` which only handles `SIGINT`. Service can also be terminated with `SIGQUIT` and `SIGTERM` and without handling them, the app will not terminate gracefully. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-07-13 21:30:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#36981