change README.md

This commit is contained in:
2020-11-05 10:06:01 +01:00
parent f2b19591f3
commit f17717d695

View File

@@ -16,6 +16,15 @@ pyinotifyd --install
pyinotifyd --uninstall
```
### Autostart
```sh
# start pyinotifyd at boot time
systemctl enable pyinotifyd.service
# start the daemon immediately
systemctl start pyinotifyd.service
```
## Configuration
The config file **/etc/pyinotifyd/config.py** is written in Python syntax. pyinotifyd reads and executes its content, that means you can add your custom Python code to the config file.
@@ -159,16 +168,6 @@ logging.getLogger().addHandler(syslog)
logging.getLogger("TaskManager").addHandler(syslog)
```
### Autostart
pyinotifyd provides a systemd service file.
```sh
# start pyinotifyd at boot time
systemctl enable pyinotifyd.service
# start the daemon immediately
systemctl start pyinotifyd.service
```
## Examples
### Schedule Python task for all events