Skip to content

Commit

Permalink
fix: stopping some services like nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
desbma committed Dec 16, 2023
1 parent 62de894 commit c80f428
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ fn main() -> anyhow::Result<()> {
// Start signal handling thread
let mut signals = signal_hook::iterator::Signals::new([
signal_hook::consts::signal::SIGINT,
signal_hook::consts::signal::SIGQUIT,
signal_hook::consts::signal::SIGTERM,
])?;
thread::spawn(move || {
Expand Down
1 change: 1 addition & 0 deletions src/systemd/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ impl Service {
}
// strace may slow down enough to risk reaching some service timeouts
writeln!(fragment_file, "TimeoutStartSec=infinity")?;
writeln!(fragment_file, "KillMode=control-group")?;

// Profile data dir
let mut rng = rand::thread_rng();
Expand Down

0 comments on commit c80f428

Please sign in to comment.