We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6cf2c8 commit 6a56353Copy full SHA for 6a56353
1 file changed
src/signals.rs
@@ -1,7 +1,7 @@
1
-use crate::service::manager::ServicesManager;
2
use crate::service::manager::ServiceMangerConfig;
+use crate::service::manager::ServicesManager;
3
use signal_hook::{
4
- consts::{SIGHUP, SIGINT},
+ consts::{SIGHUP, SIGINT, SIGTERM},
5
iterator::Signals,
6
};
7
use std::process::ExitCode;
@@ -40,7 +40,7 @@ pub fn send_signal(signal: crate::cli::Signal) -> ExitCode {
40
/// this program?
41
pub fn handle_sigint(sigint_signal: Arc<tokio::sync::Notify>) {
42
let mut signals =
43
- Signals::new([SIGINT]).expect("No signals :(. This really should never happen");
+ Signals::new([SIGINT, SIGTERM]).expect("No signals :(. This really should never happen");
44
45
std::thread::spawn(move || {
46
for _ in signals.forever() {
0 commit comments