change README.md
This commit is contained in:
19
README.md
19
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user