From f17717d695bf7d2079aae5674862e02f974e714d Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Thu, 5 Nov 2020 10:06:01 +0100 Subject: [PATCH] change README.md --- README.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) 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