summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2011-08-11 15:27:46 +0000
committerPeter Rajnoha <prajnoha@redhat.com>2011-08-11 15:27:46 +0000
commitd183554c729b6da2a8658c5df85ceee054c699d0 (patch)
tree0257540d3c4db5c061110dba53da66d5380813ee /scripts
parent34338a3406e6c0f0aff4600e5ea4b58e5521e49d (diff)
downloadlvm2-d183554c729b6da2a8658c5df85ceee054c699d0.tar.gz
lvm2-d183554c729b6da2a8658c5df85ceee054c699d0.tar.xz
lvm2-d183554c729b6da2a8658c5df85ceee054c699d0.zip
Suppress locking error messages in monitoring init scripts.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lvm2_monitoring_init_red_hat.in1
-rw-r--r--scripts/lvm2_monitoring_systemd_red_hat.service.in1
2 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lvm2_monitoring_init_red_hat.in b/scripts/lvm2_monitoring_init_red_hat.in
index 4812c750..0988511f 100644
--- a/scripts/lvm2_monitoring_init_red_hat.in
+++ b/scripts/lvm2_monitoring_init_red_hat.in
@@ -42,6 +42,7 @@ VGS=${sbindir}/vgs
LOCK_FILE="/var/lock/subsys/$DAEMON"
WARN=1
+export LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES=1
start()
{
diff --git a/scripts/lvm2_monitoring_systemd_red_hat.service.in b/scripts/lvm2_monitoring_systemd_red_hat.service.in
index 47154169..b5dd9bb4 100644
--- a/scripts/lvm2_monitoring_systemd_red_hat.service.in
+++ b/scripts/lvm2_monitoring_systemd_red_hat.service.in
@@ -8,6 +8,7 @@ Conflicts=shutdown.target
[Service]
Type=oneshot
+Environment=LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES=1
ExecStart=@sbindir@/lvm vgchange --monitor y
ExecStop=@sbindir@/lvm vgchange --monitor n
RemainAfterExit=yes