change README.md

This commit is contained in:
2020-11-05 12:09:00 +01:00
parent f087ff61a3
commit ffbedad5fb

View File

@@ -17,6 +17,9 @@ pyinotifyd --uninstall
``` ```
### Autostart ### Autostart
The following init systems are supported.
#### systemd
```sh ```sh
# start the daemon at boot time # start the daemon at boot time
systemctl enable pyinotifyd.service systemctl enable pyinotifyd.service
@@ -25,6 +28,15 @@ systemctl enable pyinotifyd.service
systemctl start pyinotifyd.service systemctl start pyinotifyd.service
``` ```
#### OpenRC (Gentoo)
```sh
# start the daemon at boot time
rc-update add pyinotifyd default
# start the daemon immediately
rc-service pyinotifyd start
```
## Configuration ## 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. 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.