From dc4e52a1effbf69146abe5088f920bed82e0253a Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 8 Apr 2020 22:35:28 +0200 Subject: bareos: 19.2.6-11 -> 19.2.6-12 --- bareos/check-if-bareos-backup-is-running | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bareos/check-if-bareos-backup-is-running') diff --git a/bareos/check-if-bareos-backup-is-running b/bareos/check-if-bareos-backup-is-running index bb513e653..bc3d2e104 100755 --- a/bareos/check-if-bareos-backup-is-running +++ b/bareos/check-if-bareos-backup-is-running @@ -6,7 +6,10 @@ if [ $# -ne 0 ]; then fi if cat /proc/net/tcp* \ -| awk '{print $3}' \ +| awk '{print $2 " " $3}' \ +| grep -vw '\(000000000000000000000000\)\?00000000:0000' \ +| tr ' ' '\n' \ +| grep -F : \ | cut -d: -f2 \ | grep -qxiF '238F'; then >&2 echo 'bareos-fd is connected to bareos-sd' -- cgit v1.2.3-54-g00ecf