summaryrefslogtreecommitdiff
path: root/scripts/lvm2_monitoring_systemd_red_hat.service.in
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-10-25 17:06:41 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2017-10-25 22:02:54 +0200
commitd809fbb541a63002214ed1d77914c7a4c7d02c60 (patch)
tree34e936013675b17d8ef1c67929189feff626123d /scripts/lvm2_monitoring_systemd_red_hat.service.in
parent3f59969c3fcbff2a3bb177fc07262f1ea569e134 (diff)
downloadlvm2-d809fbb541a63002214ed1d77914c7a4c7d02c60.tar.gz
systemd: use proper sbindir path
Replace lowercase @sbindir@ with @SBINDIR@ which contains fully decoded path. Same with @usrsbindir@ which is also used with clvmd and cmirrord. Also handle SYSCONFDIR for EnvironmentFile. Patch fixes generated unit files with strings like: ExecStart=${exec_prefix}/sbin/lvm
Diffstat (limited to 'scripts/lvm2_monitoring_systemd_red_hat.service.in')
-rw-r--r--scripts/lvm2_monitoring_systemd_red_hat.service.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lvm2_monitoring_systemd_red_hat.service.in b/scripts/lvm2_monitoring_systemd_red_hat.service.in
index 22238b77c..ebc069e25 100644
--- a/scripts/lvm2_monitoring_systemd_red_hat.service.in
+++ b/scripts/lvm2_monitoring_systemd_red_hat.service.in
@@ -10,8 +10,8 @@ Conflicts=shutdown.target
[Service]
Type=oneshot
Environment=LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES=1
-ExecStart=@sbindir@/lvm vgchange --monitor y --ignoreskippedcluster
-ExecStop=@sbindir@/lvm vgchange --monitor n --ignoreskippedcluster
+ExecStart=@SBINDIR@/lvm vgchange --monitor y --ignoreskippedcluster
+ExecStop=@SBINDIR@/lvm vgchange --monitor n --ignoreskippedcluster
RemainAfterExit=yes
[Install]