summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-05-27 20:18:51 +0200
committerErich Eckner <git@eckner.net>2019-05-27 20:18:51 +0200
commitc06b33466f7133418b589309fbdd4ef4417532ff (patch)
tree90b5ac7228dcb1ad3802cd560a2c844b36c18cf3
parent87657bd613a714c2c9cb0c7af8bdb59ffb898c5d (diff)
downloadcheck-if-bareos-backup-is-running-master.tar.xz
check-if-bareos-backup-is-running: add outputHEADmaster
-rwxr-xr-xcheck-if-bareos-backup-is-running2
1 files changed, 2 insertions, 0 deletions
diff --git a/check-if-bareos-backup-is-running b/check-if-bareos-backup-is-running
index b9a7130..e638869 100755
--- a/check-if-bareos-backup-is-running
+++ b/check-if-bareos-backup-is-running
@@ -43,6 +43,8 @@ while [ $(date +%s) -le ${time_out} ]; do
d
' "/proc/${bareos_pid}/io" \
| grep -qvxF "${was}"; then
+ >&2 echo 'bareos-fd is reading'
exit 1
fi
done
+>&2 echo 'bareos-fd is not reading'