diff options
-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' |