pidfile2

Crates.iopidfile2
lib.rspidfile2
version0.1.1
sourcesrc
created_at2024-08-18 04:47:55.351503
updated_at2024-08-18 05:38:22.890109
descriptionPID Files as process locks in Rust
homepage
repositoryhttps://github.com/alexrudy/pidfile
max_upload_size
id1342336
size19,320
Alex Rudy (alexrudy)

documentation

https://docs.rs/pidfile2

README

pidfile: PID file locking and management with RAII semantics

crate Docs Build Status MIT licensed

PID files are a crude form of locking which uses the filesystem to ensure that only one instance of a program is running at a time. This crate provides a simple API for creating and managing PID files in a way that is safe and easy to use. PID Files will be cleaned up on drop, and can be checked for existence and validity.

There is already a pidfile crate, but it is not updated. This one is a more modern approach to the same problem, and on crates.io as pidfile2.

Commit count: 0

cargo fmt