summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-14 14:35:22 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-14 14:35:22 +0200
commitf2f6e52a21cf2f90c0549df106d08cb2f79767c4 (patch)
tree18bfa7e729139417e670fa10a06b6706a70e7d7c
parent3a3db997fbb33c0edd5478e3460a3cc22c70b8e0 (diff)
downloadutils-f2f6e52a21cf2f90c0549df106d08cb2f79767c4.tar
utils-f2f6e52a21cf2f90c0549df106d08cb2f79767c4.tar.gz
utils-f2f6e52a21cf2f90c0549df106d08cb2f79767c4.tar.bz2
utils-f2f6e52a21cf2f90c0549df106d08cb2f79767c4.tar.xz
utils-f2f6e52a21cf2f90c0549df106d08cb2f79767c4.zip
-rwxr-xr-xmonitor-uucp3
1 files changed, 0 insertions, 3 deletions
diff --git a/monitor-uucp b/monitor-uucp
index 412c707..21d6f94 100755
--- a/monitor-uucp
+++ b/monitor-uucp
@@ -53,12 +53,9 @@ while true; do
53 done 53 done
54 54
55 if $watched || [[ $slept -ge $(($sleepTimeout / $sleep)) ]]; then 55 if $watched || [[ $slept -ge $(($sleepTimeout / $sleep)) ]]; then
56 printf "inotify (%s)\n" $(date +"%T")
57 @inotify@/bin/inotifywait -r -e access /var/spool/uucp &>/dev/null 56 @inotify@/bin/inotifywait -r -e access /var/spool/uucp &>/dev/null
58 slept=0
59 else 57 else
60 sleep 0.1 58 sleep 0.1
61 printf "."
62 slept=$(($slept + 1)) 59 slept=$(($slept + 1))
63 fi 60 fi
64done 61done