summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastian Blank <waldi@debian.org>2017-11-01 15:25:54 +0100
committerPeter Rajnoha <prajnoha@redhat.com>2017-11-01 15:37:19 +0100
commit58b763c99cb7620b1cc2313a9f0dccd98def53db (patch)
tree0f9b0c737598b19ad7a90e5107f9e7b2ee881209
parent7a394575fbb11aad1ad61f4caa8f16584ae45102 (diff)
downloadlvm2-58b763c99cb7620b1cc2313a9f0dccd98def53db.tar.gz
systemd: remove Install sections from socket-activated services
We always preferred and recommended socket activation for our services so remove the Install section in related .service units which are unused in this case and keep only the Install section in associated .socket units. Signed-off-by: Bastian Blank <waldi@debian.org>
-rw-r--r--WHATS_NEW1
-rw-r--r--WHATS_NEW_DM1
-rw-r--r--scripts/dm_event_systemd_red_hat.service.in3
-rw-r--r--scripts/lvm2_lvmetad_systemd_red_hat.service.in3
-rw-r--r--scripts/lvm2_lvmpolld_systemd_red_hat.service.in3
5 files changed, 2 insertions, 9 deletions
diff --git a/WHATS_NEW b/WHATS_NEW
index ab4f656d3..ac4053aec 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.176 -
===================================
+ Keep Install section only in lvm2-{lvmetad,lvmpolld}.socket systemd unit.
liblvm: Fix segfault in lvm_pv_remove. (2.02.173)
Do not allow storing VG metadata with LV without any segment.
Fix printed message when thin snapshot was already merged.
diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM
index 6475fbdba..12cd7f8b3 100644
--- a/WHATS_NEW_DM
+++ b/WHATS_NEW_DM
@@ -1,5 +1,6 @@
Version 1.02.145 -
===================================
+ Keep Install section only in dm-event.socket systemd unit.
Issue a specific error with dmsetup status if device is unknown.
Fix RT_LIBS reference in generated libdevmapper.pc for pkg-config
diff --git a/scripts/dm_event_systemd_red_hat.service.in b/scripts/dm_event_systemd_red_hat.service.in
index de9aa52c7..d2c4cf1ad 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 af34d8225..92e6d695f 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 66fbd9107..4ad4e6199 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