diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-14 14:35:22 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-14 14:35:22 +0200 |
commit | f2f6e52a21cf2f90c0549df106d08cb2f79767c4 (patch) | |
tree | 18bfa7e729139417e670fa10a06b6706a70e7d7c | |
parent | 3a3db997fbb33c0edd5478e3460a3cc22c70b8e0 (diff) | |
download | utils-f2f6e52a21cf2f90c0549df106d08cb2f79767c4.tar utils-f2f6e52a21cf2f90c0549df106d08cb2f79767c4.tar.gz utils-f2f6e52a21cf2f90c0549df106d08cb2f79767c4.tar.bz2 utils-f2f6e52a21cf2f90c0549df106d08cb2f79767c4.tar.xz utils-f2f6e52a21cf2f90c0549df106d08cb2f79767c4.zip |
…
-rwxr-xr-x | monitor-uucp | 3 |
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 |
64 | done | 61 | done |