Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 471 Bytes

README.MD

File metadata and controls

17 lines (12 loc) · 471 Bytes

solo.rs

Prevents an application from running twice. This is useful when you launch your task thanks to cron Inspired by Perl solo and Ruby version rolo, but using pid file instead of open a socket

Build by cargo

$ cargo build --release
$ cp ./target/release/solo /usr/local/bin/

Example usage

$ solo --pid=path_to_file.pid -- /usr/bin/long_running_backup_db.sh -some-param