From 20ad8b5da863c8db62e98ac5e2ff6659237cf428 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Tue, 6 Oct 2015 06:08:00 +0000 Subject: [PATCH] - fix lockfiles paths --- lvm2-tld_init.patch | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/lvm2-tld_init.patch b/lvm2-tld_init.patch index 3d9f95a..b34ec12 100644 --- a/lvm2-tld_init.patch +++ b/lvm2-tld_init.patch @@ -245,7 +245,7 @@ diff -ur LVM2.2.02.132.orig/scripts/clvmd_init_red_hat.in LVM2.2.02.132/scripts/ +exit $RETVAL diff -ur LVM2.2.02.132.orig/scripts/lvm2_lvmetad_init_red_hat.in LVM2.2.02.132/scripts/lvm2_lvmetad_init_red_hat.in --- LVM2.2.02.132.orig/scripts/lvm2_lvmetad_init_red_hat.in 2015-09-22 15:00:59.000000000 +0000 -+++ LVM2.2.02.132/scripts/lvm2_lvmetad_init_red_hat.in 2015-10-05 12:31:30.993042000 +0000 ++++ LVM2.2.02.132/scripts/lvm2_lvmetad_init_red_hat.in 2015-10-06 06:06:01.799042000 +0000 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh @@ -257,13 +257,14 @@ diff -ur LVM2.2.02.132.orig/scripts/lvm2_lvmetad_init_red_hat.in LVM2.2.02.132/s . /etc/init.d/functions -DAEMON=lvmetad -- --exec_prefix=@exec_prefix@ --sbindir=@sbindir@ +DAEMON="lvmetad" +NAME="LVM metadata daemon" - LOCK_FILE="/var/lock/subsys/$DAEMON" +-exec_prefix=@exec_prefix@ +-sbindir=@sbindir@ +- +-LOCK_FILE="/var/lock/subsys/$DAEMON" ++LOCK_FILE="/var/lock/subsys/lvm2-lvmetad" PID_FILE="@LVMETAD_PIDFILE@" -rh_status() { @@ -380,7 +381,7 @@ diff -ur LVM2.2.02.132.orig/scripts/lvm2_lvmetad_init_red_hat.in LVM2.2.02.132/s +exit $RETVAL diff -ur LVM2.2.02.132.orig/scripts/lvm2_lvmpolld_init_red_hat.in LVM2.2.02.132/scripts/lvm2_lvmpolld_init_red_hat.in --- LVM2.2.02.132.orig/scripts/lvm2_lvmpolld_init_red_hat.in 2015-09-22 15:00:59.000000000 +0000 -+++ LVM2.2.02.132/scripts/lvm2_lvmpolld_init_red_hat.in 2015-10-05 12:31:30.993042000 +0000 ++++ LVM2.2.02.132/scripts/lvm2_lvmpolld_init_red_hat.in 2015-10-06 06:07:04.889042000 +0000 @@ -1,6 +1,6 @@ -#!/bin/bash +#!/bin/sh @@ -405,13 +406,14 @@ diff -ur LVM2.2.02.132.orig/scripts/lvm2_lvmpolld_init_red_hat.in LVM2.2.02.132/ . /etc/init.d/functions -DAEMON=lvmpolld -- --exec_prefix=@exec_prefix@ --sbindir=@sbindir@ +DAEMON="lvmpolld" +NAME="LVM poll daemon" - LOCK_FILE="/var/lock/subsys/$DAEMON" +-exec_prefix=@exec_prefix@ +-sbindir=@sbindir@ +- +-LOCK_FILE="/var/lock/subsys/$DAEMON" ++LOCK_FILE="/var/lock/subsys/lvm2-lvmpolld" PID_FILE="@LVMPOLLD_PIDFILE@" -rh_status() { -- 2.46.0