summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdoalogwatch.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/doalogwatch.in b/doalogwatch.in
index 5813071..1f543a9 100755
--- a/doalogwatch.in
+++ b/doalogwatch.in
@@ -16,7 +16,8 @@ warteAufFile="#WAITDIR#/logwatch"
[ -r "${warteAufFile}" ] && \
ps aux | \
- grep -q "^\S\+\s\+$(cat "${warteAufFile}")\s" && \
+ awk '{print $2" "$(NF)}' | \
+ grep -q "^$(cat "${warteAufFile}") \(\S*/\)\?doalogwatch\$" && \
exit 0
echo $$ > "${warteAufFile}"