Skip to contentSkip to conversation

multipathd.service: remove "Also=multipathd.socket"

PATCH In review [email protected] 2 participants 2 messages Mar 25, 2023 – Mar 27, 2023 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipathd.service: remove "Also=multipathd.socket"

From: Martin Wilck <[email protected]>

This "Also=" directive is wrong. It was meant for enabling socket activation, but it actually does the opposite. "Also=multipathd.socket" means that enabling/disabling the service will enable/disable the socket, too. This is not what we want: socket activation means that we can enable the socket while the service is disabled and will be activated by the socket on demand.

See https://github.com/dracutdevs/dracut/pull/2290,
https://github.com/opensvc/multipath-tools/issues/65

Fixes ca985df ("multipathd: switch to socket activation for systemd")
---
 multipathd/multipathd.service | 1 -
 1 file changed, 1 deletion(-)
multipathd/multipathd.service +0 -1
index aec62db..5a9cde1 100644
@@ -22,4 +22,3 @@ TasksMax=infinity
 
 [Install]
 WantedBy=sysinit.target
-Also=multipathd.socket
Signature · 6 lines
2.39.2

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · On Sat, Mar 25, 2023 at 11:28:20PM +0100, [email protected] wrote:

From: Martin Wilck <[email protected]>

This "Also=" directive is wrong. It was meant for enabling socket activation, but it actually does the opposite. "Also=multipathd.socket" means that enabling/disabling the service will enable/disable the socket, too. This is not what we want: socket activation means that we can enable the socket while the service is disabled and will be activated by the socket on demand.

Quoted 5 lines

See https://github.com/dracutdevs/dracut/pull/2290,
https://github.com/opensvc/multipath-tools/issues/65

Fixes ca985df ("multipathd: switch to socket activation for systemd")
Quoted 15 lines
---
 multipathd/multipathd.service | 1 -
 1 file changed, 1 deletion(-)
multipathd/multipathd.service +0 -1
index aec62db..5a9cde1 100644
@@ -22,4 +22,3 @@ TasksMax=infinity
 
 [Install]
 WantedBy=sysinit.target
-Also=multipathd.socket
Signature · 1 line
2.39.2

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel