aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md9
-rw-r--r--pyproject.toml2
2 files changed, 6 insertions, 5 deletions
diff --git a/README.md b/README.md
index ef3bdb5..94cfc41 100644
--- a/README.md
+++ b/README.md
@@ -38,10 +38,10 @@ pip install pylogsentinel
chmod 600 /etc/pylogsentinel.conf
```
2. Edit paths, rules, and actions to your needs.
-3. Add a cron entry (run every minute):
+3. First build state without executing actions (initial run with --skip-actions):
```
- * * * * * /usr/bin/env python3 -m pylogsentinel -c /etc/pylogsentinel.conf
+ python -m pylogsentinel -c /etc/pylogsentinel.conf --skip-actions
```
If you omit the `-c` option (or the specified file does not exist), pylogsentinel will look for a configuration file in this order:
@@ -50,9 +50,10 @@ pip install pylogsentinel
- `/etc/pylogsentinel.conf`
- `/usr/local/etc/pylogsentinel.conf`.
-4. First build state without executing actions (initial run with --skip-actions):
+4. Add a cron entry (run every minute):
+
```
- python -m pylogsentinel -c /etc/pylogsentinel.conf --skip-actions
+ * * * * * /usr/bin/env python3 -m pylogsentinel -c /etc/pylogsentinel.conf
```
## Configuration File Reference
diff --git a/pyproject.toml b/pyproject.toml
index 5f501c7..5133c3c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "pylogsentinel"
-version = "0.2.0"
+version = "0.2.1"
description = "Lightweight cron-friendly log monitoring utility with regex rules and per-rule shell actions"
readme = "README.md"
requires-python = ">=3.9"