fwatchd

Crates.iofwatchd
lib.rsfwatchd
version0.1.0
sourcesrc
created_at2022-06-26 17:30:36.614401
updated_at2022-06-26 17:30:36.614401
descriptionfwatchd - A file watching daemon
homepage
repositoryhttps://github.com/PatrikLundgren/fwatchd
max_upload_size
id613636
size45,357
Patrik Lundgren (PatrikLundgren)

documentation

https://docs.rs/fwatchd

README

fwatchd

Latest Version docs

fwatchd - A file watching daemon

fwatchd can be controlled using fwatchctl, which may instruct fwatchd to track files and perform some action based on inotify events on that file.

Create fwatchd user

usermod -aG fwatch $USER
useradd -r -d / -c "File watching daemon" -s /usr/bin/nologin fwatch

Example Usage

systemctl enable fwatch
systemctl start fwatch

fwatchctl track /tmp/example

Customizing usage of the event

fwatchd --foreground

fwatchctl track /tmp/example --alias /usr/bin/echo --script /usr/bin/cat"
echo "test" >> /tmp/example
fwatchctl list
Commit count: 61

cargo fmt