diff --git a/README.md b/README.md index 066a92d..dfcef9e 100644 --- a/README.md +++ b/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