readme and minor

master
Lukáš Hozda 5 years ago
parent ac86bb7844
commit 15dad0578a

@ -0,0 +1,10 @@
# init-rs
Should be pretty much a drop-in replacement for `sinit`. Apart from Rust, the difference is that `initrs` is more
talkative and has more checks (for instance checks if init script/command failed). Also allows timeout duration to be customized.
Disclaimer: I am not sure if my `sig_reap` is 100% correct.
## Customization
To customize, edit `src/config.rs`.

@ -1,5 +1,9 @@
/// time-out duration for SIGALRMs across initrs (all 2 of them)
pub static TIMEOUT: u32 = 30;
/// init script/command/program to be ran once initrs initializes
pub static INIT_CMD: &'static [&'static str] = &["/bin/rc.init"];
/// command to reboot
pub static REBOOT_CMD: &'static [&'static str] = &["/bin/rc.shutdown", "reboot"];
pub static POWEROFF_CMD: &'static [&'static str] = &["/bin/rc.init", "poweroff"];
/// command to shutdown
pub static POWEROFF_CMD: &'static [&'static str] = &["/bin/rc.shutdown", "poweroff"];

Loading…
Cancel
Save