diff options
Diffstat (limited to 'archlinuxaba/bareos/check-if-bareos-backup-is-running')
-rwxr-xr-x | archlinuxaba/bareos/check-if-bareos-backup-is-running | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/archlinuxaba/bareos/check-if-bareos-backup-is-running b/archlinuxaba/bareos/check-if-bareos-backup-is-running deleted file mode 100755 index bc3d2e1..0000000 --- a/archlinuxaba/bareos/check-if-bareos-backup-is-running +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -if [ $# -ne 0 ]; then - >&2 echo 'check-if-bareos-backup-is-running: too many arguments' - exit 2 -fi - -if cat /proc/net/tcp* \ -| 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' - exit 1 -else - >&2 echo 'bareos-fd is not connected to bareos-sd' -fi |