Skip to contentSkip to conversation

master - systemd: remove Install sections from socket-activated services

PATCH Peter Rajnoha 1 participant 1 message Nov 1, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=58b763c99cb7620b1cc2313a9f0dccd98def53db
Commit:        58b763c99cb7620b1cc2313a9f0dccd98def53db
Parent:        7a394575fbb11aad1ad61f4caa8f16584ae45102
Author:        Bastian Blank <[email protected]>
AuthorDate:    Wed Nov 1 15:25:54 2017 +0100
Committer:     Peter Rajnoha <[email protected]>
CommitterDate: Wed Nov 1 15:37:19 2017 +0100

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.

---
 WHATS_NEW                                        |    1 +
 WHATS_NEW_DM                                     |    1 +
 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 ---
 5 files changed, 2 insertions(+), 9 deletions(-)
WHATS_NEW +1 -0
index ab4f656..ac4053a 100644
@@ -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.
WHATS_NEW_DM +1 -0
index 6475fbd..12cd7f8 100644
@@ -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
 
scripts/dm_event_systemd_red_hat.service.in +0 -3
index de9aa52..d2c4cf1 100644
@@ -13,6 +13,3 @@ ExecStart=@SBINDIR@/dmeventd -f
 Environment=SD_ACTIVATION=1
 PIDFile=@DMEVENTD_PIDFILE@
 OOMScoreAdjust=-1000
-
-[Install]
-WantedBy=sysinit.target
scripts/lvm2_lvmetad_systemd_red_hat.service.in +0 -3
index af34d82..92e6d69 100644
@@ -13,6 +13,3 @@ ExecStart=@SBINDIR@/lvmetad -f
 Environment=SD_ACTIVATION=1
 Restart=on-abort
 PIDFile=@LVMETAD_PIDFILE@
-
-[Install]
-WantedBy=sysinit.target
scripts/lvm2_lvmpolld_systemd_red_hat.service.in +0 -3
index 66fbd91..4ad4e61 100644
@@ -12,6 +12,3 @@ NonBlocking=true
 ExecStart=@SBINDIR@/lvmpolld -t 60 -f
 Environment=SD_ACTIVATION=1
 PIDFile=@LVMPOLLD_PIDFILE@
-
-[Install]
-WantedBy=sysinit.target