[lvm-devel] [PATCH] Remove Install sections from socket activate services

Bastian Blank waldi at debian.org
Wed Nov 1 12:38:19 UTC 2017


Those services are never enabled on Red Hat.  Other distributions enable
all services that can be enabled.

Signed-off-by: Bastian Blank <waldi at debian.org>
---
 scripts/dm_event_systemd_red_hat.service.in      | 3 ---
 scripts/lvm2_lvmetad_systemd_red_hat.service.in  | 3 ---
 scripts/lvm2_lvmpolld_systemd_red_hat.service.in | 3 ---
 3 files changed, 9 deletions(-)

diff --git a/scripts/dm_event_systemd_red_hat.service.in b/scripts/dm_event_systemd_red_hat.service.in
index de9aa52c77..d2c4cf1ad5 100644
--- a/scripts/dm_event_systemd_red_hat.service.in
+++ b/scripts/dm_event_systemd_red_hat.service.in
@@ -13,6 +13,3 @@ ExecStart=@SBINDIR@/dmeventd -f
 Environment=SD_ACTIVATION=1
 PIDFile=@DMEVENTD_PIDFILE@
 OOMScoreAdjust=-1000
-
-[Install]
-WantedBy=sysinit.target
diff --git a/scripts/lvm2_lvmetad_systemd_red_hat.service.in b/scripts/lvm2_lvmetad_systemd_red_hat.service.in
index af34d82257..92e6d695f1 100644
--- a/scripts/lvm2_lvmetad_systemd_red_hat.service.in
+++ b/scripts/lvm2_lvmetad_systemd_red_hat.service.in
@@ -13,6 +13,3 @@ ExecStart=@SBINDIR@/lvmetad -f
 Environment=SD_ACTIVATION=1
 Restart=on-abort
 PIDFile=@LVMETAD_PIDFILE@
-
-[Install]
-WantedBy=sysinit.target
diff --git a/scripts/lvm2_lvmpolld_systemd_red_hat.service.in b/scripts/lvm2_lvmpolld_systemd_red_hat.service.in
index 66fbd91071..4ad4e61990 100644
--- a/scripts/lvm2_lvmpolld_systemd_red_hat.service.in
+++ b/scripts/lvm2_lvmpolld_systemd_red_hat.service.in
@@ -12,6 +12,3 @@ NonBlocking=true
 ExecStart=@SBINDIR@/lvmpolld -t 60 -f
 Environment=SD_ACTIVATION=1
 PIDFile=@LVMPOLLD_PIDFILE@
-
-[Install]
-WantedBy=sysinit.target
-- 
2.15.0.rc0




More information about the lvm-devel mailing list