3 releases

0.1.2 Nov 18, 2022
0.1.1 Nov 4, 2022
0.1.0 Apr 1, 2022

#8 in #forever

Download history 38/week @ 2024-07-22 8/week @ 2024-08-26 4/week @ 2024-09-09 30/week @ 2024-09-23 13/week @ 2024-10-07 24/week @ 2024-10-14 17/week @ 2024-10-28

54 downloads per month
Used in wmproxy

MIT/Apache

27KB
587 lines

forever-rs

rust守护进程, 轻松实现守护

Cargo.toml dependencies

[dependencies]
forever-rs = { version = "0.1.0" }

example

监控文件改变就自动重启, 或者子进程意外退出重启

#[forever_rs::main(monitor_file="Cargo.lock", max_times=6)]
fn main() {
    println!("Hello, world!");
}

Dependencies

~1.3–1.7MB
~40K SLoC