summaryrefslogtreecommitdiff
path: root/scripts/com.redhat.lvmdbus1.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/com.redhat.lvmdbus1.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/com.redhat.lvmdbus1.service.in')
-rw-r--r--scripts/com.redhat.lvmdbus1.service.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/com.redhat.lvmdbus1.service.in b/scripts/com.redhat.lvmdbus1.service.in
index 5578ed17a..02d8ac128 100644
--- a/scripts/com.redhat.lvmdbus1.service.in
+++ b/scripts/com.redhat.lvmdbus1.service.in
@@ -1,5 +1,5 @@
[D-BUS Service]
Name=com.redhat.lvmdbus1
-Exec=@sbindir@/lvmdbusd --udev
+Exec=@SBINDIR@/lvmdbusd --udev
User=root
SystemdService=lvm2-lvmdbusd.service