⏹ A Rust re-implementation of System-V init shutdown(8)
https://git.forestier.app/HorlogeSkynet/shutdownr
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
COPYING | ||
README.md |
shutdownr
A Rust re-implementation of System-V init shutdown(8)
Build
cargo build
Usage
shutdownr --help
Contributing
Code format
rustup component add rustfmt
cargo fmt
Code analysis
rustup component add clippy
cargo clippy
Improvements compared to original version
- Unlimited line length in
/etc/shutdown.allow
- Unlimited number of users in
/etc/shutdown.allow
- Strip lines before parsing
/etc/shutdown.allow
SIGALRM
hacks have been replaced by timeouts in asynchronous contexts
Disclaimer
Not fully-tested, use at your own risk (as always).