⏹ A Rust re-implementation of System-V init shutdown(8) https://git.forestier.app/HorlogeSkynet/shutdownr
Go to file
2024-07-27 15:16:10 +02:00
src Initial commit 2024-05-28 23:40:39 +02:00
.gitignore Initial commit 2024-05-28 23:40:39 +02:00
Cargo.lock Bumps dependencies 2024-07-27 15:16:10 +02:00
Cargo.toml Bumps dependencies 2024-07-27 15:16:10 +02:00
COPYING Initial commit 2024-05-28 23:40:39 +02:00
README.md Initial commit 2024-05-28 23:40:39 +02:00

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).