From: Daniel Scott Date: Sun, 12 Dec 2010 20:00:04 +0000 (-0800) Subject: Check in /usr/sbin for vos as well X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2bcf1219e5fdf50064e9ff8a9aaf8902df900337;p=packages%2Fa%2Fafs-monitor.git Check in /usr/sbin for vos as well In Fedora, the OpenAFS 'vos' binary is stored under: /usr/sbin and so I have added that directory to the search path in check_afs_quotas and check_afs_space. --- diff --git a/check_afs_quotas b/check_afs_quotas index 4a403f8..6d63039 100755 --- a/check_afs_quotas +++ b/check_afs_quotas @@ -50,7 +50,7 @@ our $TIMEOUT = 300; # The full path to vos. Make sure that this is on local disk so that # monitoring doesn't have an AFS dependency. -our ($VOS) = grep { -x $_ } qw(/usr/bin/vos /usr/local/bin/vos); +our ($VOS) = grep { -x $_ } qw(/usr/bin/vos /usr/local/bin/vos /usr/sbin/vos); $VOS ||= '/usr/bin/vos'; ############################################################################## diff --git a/check_afs_space b/check_afs_space index afc9e02..495d53b 100755 --- a/check_afs_space +++ b/check_afs_space @@ -49,7 +49,7 @@ our $TIMEOUT = 300; # The full path to vos. Make sure that this is on local disk so that # monitoring doesn't have an AFS dependency. -our ($VOS) = grep { -x $_ } qw(/usr/bin/vos /usr/local/bin/vos); +our ($VOS) = grep { -x $_ } qw(/usr/bin/vos /usr/local/bin/vos /usr/sbin/vos); $VOS ||= '/usr/bin/vos'; ##############################################################################