Killrs is a very simple threshold based process killer. Use it only for experimentation as killing a process can lead to unexpected results.
cargo install --git https://github.com/vitrioil/killrsProvide the pid, threshold and what resource to monitor.
killrs --helpExample: To restrict the process running more than 100 seconds
killrs --pid <pid> --threshold 100 run-timeIt will send SIGINT to begin with, but if the process still exists it will escalate it to SIGTERM and then SIGKILL.
Run example:
cargo run --example simpleIt uses sysinfo to gather system information.