shutdownr (0.1.1)
Installation
[registry]
default = "gitea"
[registries.gitea]
index = "sparse+ " # Sparse index
# index = " " # Git
[net]
git-fetch-with-cli = true
cargo add shutdownr@0.1.1
About this package
A Rust re-implementation of System-V init shutdown(8)
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).
Dependencies
ID | Version |
---|---|
bincode | ^1.3.3 |
chrono | ^0.4.24 |
clap | ^3.2.25 |
env_logger | ^0.9.1 |
log | ^0.4.17 |
nix | ^0.26.2 |
once_cell | ^1.19.0 |
serde | ^1.0.200 |
syslog | ^6.1.0 |
tokio | ^1.37.0 |
utmp-rs | ^0.3.0 |
Details
2024-07-27 15:18:53 +02:00
Assets (1)
Versions (1)
View all
Cargo
19
Samuel FORESTIER <samuel+dev@forestier.app>
GPL-3.0-or-later
32 KiB
shutdownr-0.1.1.crate
32 KiB
0.1.1
2024-07-27