summaryrefslogtreecommitdiff
path: root/scripts/lvm2_lvmpolld_init_red_hat.in
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-10-25 17:08:00 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2017-10-25 22:02:54 +0200
commit34618c2d3061e7f9f563d4c9ad9a185c77935f0e (patch)
treee0f95ba4132f776cfeee0ef32be1201a8032cb0f /scripts/lvm2_lvmpolld_init_red_hat.in
parentd809fbb541a63002214ed1d77914c7a4c7d02c60 (diff)
downloadlvm2-34618c2d3061e7f9f563d4c9ad9a185c77935f0e.tar.gz
scripts: paths update
Correct usage of sbindir also for scripts so the path no longer needs resolving more vars like exec_prefix & prefix.
Diffstat (limited to 'scripts/lvm2_lvmpolld_init_red_hat.in')
-rw-r--r--scripts/lvm2_lvmpolld_init_red_hat.in7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/lvm2_lvmpolld_init_red_hat.in b/scripts/lvm2_lvmpolld_init_red_hat.in
index c521955be..05f8b0876 100644
--- a/scripts/lvm2_lvmpolld_init_red_hat.in
+++ b/scripts/lvm2_lvmpolld_init_red_hat.in
@@ -37,10 +37,9 @@
DAEMON=lvmpolld
-exec_prefix=@exec_prefix@
-sbindir=@sbindir@
+sbindir="@SBINDIR@"
-LOCK_FILE="/var/lock/subsys/$DAEMON"
+LOCK_FILE="@DEFAULT_LOCK_DIR@/subsys/$DAEMON"
PID_FILE="@LVMPOLLD_PIDFILE@"
rh_status() {
@@ -54,7 +53,7 @@ rh_status_q() {
start()
{
ret=0
- action "Starting LVM poll daemon:" $DAEMON || ret=$?
+ action "Starting LVM poll daemon:" "$sbindir/$DAEMON" || ret=$?
return $ret
}