File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- use crate :: service:: manager:: ServicesManager ;
21use crate :: service:: manager:: ServiceMangerConfig ;
2+ use crate :: service:: manager:: ServicesManager ;
33use signal_hook:: {
4- consts:: { SIGHUP , SIGINT } ,
4+ consts:: { SIGHUP , SIGINT , SIGTERM } ,
55 iterator:: Signals ,
66} ;
77use std:: process:: ExitCode ;
@@ -40,7 +40,7 @@ pub fn send_signal(signal: crate::cli::Signal) -> ExitCode {
4040/// this program?
4141pub fn handle_sigint ( sigint_signal : Arc < tokio:: sync:: Notify > ) {
4242 let mut signals =
43- Signals :: new ( [ SIGINT ] ) . expect ( "No signals :(. This really should never happen" ) ;
43+ Signals :: new ( [ SIGINT , SIGTERM ] ) . expect ( "No signals :(. This really should never happen" ) ;
4444
4545 std:: thread:: spawn ( move || {
4646 for _ in signals. forever ( ) {
You can’t perform that action at this time.
0 commit comments