systemd: Add Also between sockets

This results in all sockets for a service being enabled when a
single one of them is.

The -tcp and -tls sockets are intentionally excluded, because
enabling them should require explicit action on the
administrator's part; moreover, disabling them should not result
in the local sockets being disabled too.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Andrea Bolognani 2023-09-25 17:24:34 +02:00
parent e248711ca4
commit 826931e95a
10 changed files with 16 additions and 0 deletions

View File

@ -10,3 +10,4 @@ SocketMode=0600
[Install]
WantedBy=sockets.target
Also=virtlockd.socket

View File

@ -8,3 +8,4 @@ SocketMode=0600
[Install]
WantedBy=sockets.target
Also=virtlockd-admin.socket

View File

@ -10,3 +10,4 @@ SocketMode=0600
[Install]
WantedBy=sockets.target
Also=virtlogd.socket

View File

@ -8,3 +8,4 @@ SocketMode=0600
[Install]
WantedBy=sockets.target
Also=virtlogd-admin.socket

View File

@ -10,3 +10,5 @@ SocketMode=0600
[Install]
WantedBy=sockets.target
Also=libvirtd.socket
Also=libvirtd-ro.socket

View File

@ -10,3 +10,5 @@ SocketMode=0666
[Install]
WantedBy=sockets.target
Also=libvirtd.socket
Also=libvirtd-admin.socket

View File

@ -9,3 +9,5 @@ RemoveOnStop=yes
[Install]
WantedBy=sockets.target
Also=libvirtd-ro.socket
Also=libvirtd-admin.socket

View File

@ -12,3 +12,5 @@ SocketMode=0600
[Install]
WantedBy=sockets.target
Also=@service@.socket
Also=@service@-ro.socket

View File

@ -12,3 +12,5 @@ SocketMode=0666
[Install]
WantedBy=sockets.target
Also=@service@.socket
Also=@service@-admin.socket

View File

@ -11,3 +11,5 @@ RemoveOnStop=yes
[Install]
WantedBy=sockets.target
Also=@service@-ro.socket
Also=@service@-admin.socket