diff options
author | Erich Eckner <git@eckner.net> | 2019-05-27 20:18:51 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-05-27 20:18:51 +0200 |
commit | c06b33466f7133418b589309fbdd4ef4417532ff (patch) | |
tree | 90b5ac7228dcb1ad3802cd560a2c844b36c18cf3 | |
parent | 87657bd613a714c2c9cb0c7af8bdb59ffb898c5d (diff) | |
download | check-if-bareos-backup-is-running-master.tar.xz |
-rwxr-xr-x | check-if-bareos-backup-is-running | 2 |
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' |