change README.md

This commit is contained in:
2020-11-03 14:09:25 +01:00
parent 76e3d8f9b5
commit aeb1e5a5d2

View File

@@ -118,3 +118,13 @@ watch = Watch(path="/src_path", event_map=event_map, rec=True, auto_add=True)
pyinotifyd_config = PyinotifydConfig( pyinotifyd_config = PyinotifydConfig(
watches=[watch], loglevel=logging.INFO, shutdown_timeout=35) watches=[watch], loglevel=logging.INFO, shutdown_timeout=35)
``` ```
# Autostart
pyinotifyd provides a systemd service file.
```sh
# start the daemon during boot
systemctl enable pyinotifyd.service
# start the daemon
systemctl start pyinotifyd.service
```