diff --git a/scripts/blk_availability_systemd_red_hat.service.in b/scripts/blk_availability_systemd_red_hat.service.in index 10c3f44aa..1198baa2a 100644 --- a/scripts/blk_availability_systemd_red_hat.service.in +++ b/scripts/blk_availability_systemd_red_hat.service.in @@ -7,7 +7,7 @@ Conflicts=shutdown.target [Service] Type=oneshot ExecStart=/usr/bin/true -ExecStop=@sbindir@/blkdeactivate -u -l wholevg -m disablequeueing -r wait +ExecStop=@SBINDIR@/blkdeactivate -u -l wholevg -m disablequeueing -r wait RemainAfterExit=yes [Install] 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 diff --git a/scripts/dm_event_systemd_red_hat.service.in b/scripts/dm_event_systemd_red_hat.service.in index 4924d3988..de9aa52c7 100644 --- a/scripts/dm_event_systemd_red_hat.service.in +++ b/scripts/dm_event_systemd_red_hat.service.in @@ -9,7 +9,7 @@ DefaultDependencies=no [Service] Type=simple -ExecStart=@sbindir@/dmeventd -f +ExecStart=@SBINDIR@/dmeventd -f Environment=SD_ACTIVATION=1 PIDFile=@DMEVENTD_PIDFILE@ OOMScoreAdjust=-1000 diff --git a/scripts/lvm2_cluster_activation_systemd_red_hat.service.in b/scripts/lvm2_cluster_activation_systemd_red_hat.service.in index 970e93ad3..bf4aa1eca 100644 --- a/scripts/lvm2_cluster_activation_systemd_red_hat.service.in +++ b/scripts/lvm2_cluster_activation_systemd_red_hat.service.in @@ -9,7 +9,7 @@ Conflicts=shutdown.target [Service] Type=simple RemainAfterExit=yes -EnvironmentFile=-@sysconfdir@/sysconfig/clvmd +EnvironmentFile=-@SYSCONFDIR@/sysconfig/clvmd ExecStart=@systemdutildir@/lvm2-cluster-activation activate ExecStop=@systemdutildir@/lvm2-cluster-activation deactivate diff --git a/scripts/lvm2_clvmd_systemd_red_hat.service.in b/scripts/lvm2_clvmd_systemd_red_hat.service.in index f506fa87f..ced27744e 100644 --- a/scripts/lvm2_clvmd_systemd_red_hat.service.in +++ b/scripts/lvm2_clvmd_systemd_red_hat.service.in @@ -13,8 +13,8 @@ Conflicts=shutdown.target [Service] Type=forking Environment=CLVMD_OPTS=-T30 -EnvironmentFile=-@sysconfdir@/sysconfig/clvmd -ExecStart=@sbindir@/clvmd $CLVMD_OPTS +EnvironmentFile=-@SYSCONFDIR@/sysconfig/clvmd +ExecStart=@USRSBINDIR@/clvmd $CLVMD_OPTS SuccessExitStatus=5 TimeoutStartSec=30 TimeoutStopSec=10 diff --git a/scripts/lvm2_cmirrord_systemd_red_hat.service.in b/scripts/lvm2_cmirrord_systemd_red_hat.service.in index 2dfc2a4e2..e482b9a99 100644 --- a/scripts/lvm2_cmirrord_systemd_red_hat.service.in +++ b/scripts/lvm2_cmirrord_systemd_red_hat.service.in @@ -9,7 +9,7 @@ Conflicts=shutdown.target [Service] Type=forking -ExecStart=@sbindir@/cmirrord +ExecStart=@USRSBINDIR@/cmirrord PIDFile=@CMIRRORD_PIDFILE@ Restart=on-abort diff --git a/scripts/lvm2_lvmdbusd_systemd_red_hat.service.in b/scripts/lvm2_lvmdbusd_systemd_red_hat.service.in index 64cec4ee2..7e4d7e4d7 100644 --- a/scripts/lvm2_lvmdbusd_systemd_red_hat.service.in +++ b/scripts/lvm2_lvmdbusd_systemd_red_hat.service.in @@ -5,7 +5,7 @@ Documentation=man:lvmdbusd(8) [Service] Type=dbus BusName=com.redhat.lvmdbus1 -ExecStart=@sbindir@/lvmdbusd +ExecStart=@SBINDIR@/lvmdbusd [Install] WantedBy=multi-user.target diff --git a/scripts/lvm2_lvmetad_systemd_red_hat.service.in b/scripts/lvm2_lvmetad_systemd_red_hat.service.in index 8f4c60d52..af34d8225 100644 --- a/scripts/lvm2_lvmetad_systemd_red_hat.service.in +++ b/scripts/lvm2_lvmetad_systemd_red_hat.service.in @@ -9,7 +9,7 @@ Conflicts=shutdown.target [Service] Type=simple NonBlocking=true -ExecStart=@sbindir@/lvmetad -f +ExecStart=@SBINDIR@/lvmetad -f Environment=SD_ACTIVATION=1 Restart=on-abort PIDFile=@LVMETAD_PIDFILE@ diff --git a/scripts/lvm2_lvmlockd_systemd_red_hat.service.in b/scripts/lvm2_lvmlockd_systemd_red_hat.service.in index 17c7dbf91..2a7544a05 100644 --- a/scripts/lvm2_lvmlockd_systemd_red_hat.service.in +++ b/scripts/lvm2_lvmlockd_systemd_red_hat.service.in @@ -6,7 +6,7 @@ After=lvm2-lvmetad.service [Service] Type=simple NonBlocking=true -ExecStart=@sbindir@/lvmlockd -f +ExecStart=@SBINDIR@/lvmlockd -f Environment=SD_ACTIVATION=1 PIDFile=@LVMLOCKD_PIDFILE@ SendSIGKILL=no diff --git a/scripts/lvm2_lvmlocking_systemd_red_hat.service.in b/scripts/lvm2_lvmlocking_systemd_red_hat.service.in index bfac578a7..62d8177d5 100644 --- a/scripts/lvm2_lvmlocking_systemd_red_hat.service.in +++ b/scripts/lvm2_lvmlocking_systemd_red_hat.service.in @@ -8,16 +8,16 @@ Type=oneshot RemainAfterExit=yes # start lockspaces and wait for them to finish starting -ExecStart=@sbindir@/vgchange --lock-start --lock-opt autowait +ExecStart=@SBINDIR@/lvm vgchange --lock-start --lock-opt autowait # auto activate LVs in the newly started lockd VGs -ExecStart=@sbindir@/vgchange -aay -S 'locktype=sanlock || locktype=dlm' +ExecStart=@SBINDIR@/lvm vgchange -aay -S 'locktype=sanlock || locktype=dlm' # deactivate LVs in lockd VGs -ExecStop=@sbindir@/vgchange -an -S 'locktype=sanlock || locktype=dlm' +ExecStop=@SBINDIR@/lvm vgchange -an -S 'locktype=sanlock || locktype=dlm' # stop lockspaces and wait for them to finish stopping -ExecStop=@sbindir@/lvmlockctl --stop-lockspaces --wait 1 +ExecStop=@SBINDIR@/lvmlockctl --stop-lockspaces --wait 1 [Install] WantedBy=multi-user.target diff --git a/scripts/lvm2_lvmpolld_systemd_red_hat.service.in b/scripts/lvm2_lvmpolld_systemd_red_hat.service.in index d7ff492ae..66fbd9107 100644 --- a/scripts/lvm2_lvmpolld_systemd_red_hat.service.in +++ b/scripts/lvm2_lvmpolld_systemd_red_hat.service.in @@ -9,7 +9,7 @@ Conflicts=shutdown.target [Service] Type=simple NonBlocking=true -ExecStart=@sbindir@/lvmpolld -t 60 -f +ExecStart=@SBINDIR@/lvmpolld -t 60 -f Environment=SD_ACTIVATION=1 PIDFile=@LVMPOLLD_PIDFILE@ 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] diff --git a/scripts/lvm2_pvscan_systemd_red_hat@.service.in b/scripts/lvm2_pvscan_systemd_red_hat@.service.in index 09895902a..839bfd177 100644 --- a/scripts/lvm2_pvscan_systemd_red_hat@.service.in +++ b/scripts/lvm2_pvscan_systemd_red_hat@.service.in @@ -12,5 +12,5 @@ Conflicts=shutdown.target [Service] Type=oneshot RemainAfterExit=yes -ExecStart=@sbindir@/lvm pvscan --cache --activate ay %i -ExecStop=@sbindir@/lvm pvscan --cache %i +ExecStart=@SBINDIR@/lvm pvscan --cache --activate ay %i +ExecStop=@SBINDIR@/lvm pvscan --cache %i