systemd: Improve and unify unit descriptions

Hypervisors are referred to by their user-facing name rather
than the name of their libvirt driver, the monolithic daemon is
explicitly referred to as legacy, and a consistent format is
used throughout.

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 16:06:09 +02:00
parent deda1a0791
commit 12003a66d1
33 changed files with 34 additions and 34 deletions

View File

@ -57,7 +57,7 @@ if conf.has('WITH_CH')
virt_daemon_units += { virt_daemon_units += {
'service': 'virtchd', 'service': 'virtchd',
'name': 'Libvirt ch', 'name': 'Cloud Hypervisor',
'service_extra_in': files('virtchd.service.extra.in'), 'service_extra_in': files('virtchd.service.extra.in'),
} }

View File

@ -44,7 +44,7 @@ if conf.has('WITH_INTERFACE')
virt_daemon_units += { virt_daemon_units += {
'service': 'virtinterfaced', 'service': 'virtinterfaced',
'name': 'Libvirt interface', 'name': 'interface',
} }
openrc_init_files += { openrc_init_files += {

View File

@ -66,7 +66,7 @@ if conf.has('WITH_LIBXL')
virt_daemon_units += { virt_daemon_units += {
'service': 'virtxend', 'service': 'virtxend',
'name': 'Libvirt libxl', 'name': 'Xen',
'service_extra_in': files('virtxend.service.extra.in'), 'service_extra_in': files('virtxend.service.extra.in'),
'socket_extra_in': files('virtxend.socket.extra.in'), 'socket_extra_in': files('virtxend.socket.extra.in'),
} }

View File

@ -144,7 +144,7 @@ if conf.has('WITH_LIBVIRTD')
virt_daemon_units += { virt_daemon_units += {
'service': 'virtlockd', 'service': 'virtlockd',
'service_in': files('virtlockd.service.in'), 'service_in': files('virtlockd.service.in'),
'name': 'Libvirt locking', 'name': 'locking',
'sockets': [ 'main', 'admin' ], 'sockets': [ 'main', 'admin' ],
'socket_in': files('virtlockd.socket.in'), 'socket_in': files('virtlockd.socket.in'),
'socket_admin_in': files('virtlockd-admin.socket.in'), 'socket_admin_in': files('virtlockd-admin.socket.in'),

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=Virtual machine lock manager admin socket Description=libvirt locking daemon admin socket
BindsTo=virtlockd.socket BindsTo=virtlockd.socket
After=virtlockd.socket After=virtlockd.socket

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=Virtual machine lock manager Description=libvirt locking daemon
BindsTo=virtlockd.socket BindsTo=virtlockd.socket
Wants=virtlockd-admin.socket Wants=virtlockd-admin.socket
After=virtlockd.socket After=virtlockd.socket

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=Virtual machine lock manager socket Description=libvirt locking daemon socket
[Socket] [Socket]
ListenStream=@runstatedir@/libvirt/virtlockd-sock ListenStream=@runstatedir@/libvirt/virtlockd-sock

View File

@ -91,7 +91,7 @@ if conf.has('WITH_LIBVIRTD')
virt_daemon_units += { virt_daemon_units += {
'service': 'virtlogd', 'service': 'virtlogd',
'service_in': files('virtlogd.service.in'), 'service_in': files('virtlogd.service.in'),
'name': 'Libvirt logging', 'name': 'logging',
'sockets': [ 'main', 'admin' ], 'sockets': [ 'main', 'admin' ],
'socket_in': files('virtlogd.socket.in'), 'socket_in': files('virtlogd.socket.in'),
'socket_admin_in': files('virtlogd-admin.socket.in'), 'socket_admin_in': files('virtlogd-admin.socket.in'),

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=Virtual machine log manager socket Description=libvirt logging daemon admin socket
BindsTo=virtlogd.socket BindsTo=virtlogd.socket
After=virtlogd.socket After=virtlogd.socket

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=Virtual machine log manager Description=libvirt logging daemon
BindsTo=virtlogd.socket BindsTo=virtlogd.socket
Wants=virtlogd-admin.socket Wants=virtlogd-admin.socket
After=virtlogd.socket After=virtlogd.socket

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=Virtual machine log manager socket Description=libvirt logging daemon socket
[Socket] [Socket]
ListenStream=@runstatedir@/libvirt/virtlogd-sock ListenStream=@runstatedir@/libvirt/virtlogd-sock

View File

@ -164,7 +164,7 @@ if conf.has('WITH_LXC')
virt_daemon_units += { virt_daemon_units += {
'service': 'virtlxcd', 'service': 'virtlxcd',
'name': 'Libvirt lxc', 'name': 'LXC',
'service_extra_in': files('virtlxcd.service.extra.in'), 'service_extra_in': files('virtlxcd.service.extra.in'),
} }

View File

@ -62,7 +62,7 @@ if conf.has('WITH_NETWORK')
virt_daemon_units += { virt_daemon_units += {
'service': 'virtnetworkd', 'service': 'virtnetworkd',
'name': 'Libvirt network', 'name': 'network',
'service_extra_in': files('virtnetworkd.service.extra.in'), 'service_extra_in': files('virtnetworkd.service.extra.in'),
} }

View File

@ -52,7 +52,7 @@ if conf.has('WITH_NODE_DEVICES')
virt_daemon_units += { virt_daemon_units += {
'service': 'virtnodedevd', 'service': 'virtnodedevd',
'name': 'Libvirt nodedev', 'name': 'nodedev',
} }
openrc_init_files += { openrc_init_files += {

View File

@ -50,7 +50,7 @@ if conf.has('WITH_NWFILTER')
virt_daemon_units += { virt_daemon_units += {
'service': 'virtnwfilterd', 'service': 'virtnwfilterd',
'name': 'Libvirt nwfilter', 'name': 'nwfilter',
} }
openrc_init_files += { openrc_init_files += {

View File

@ -183,7 +183,7 @@ if conf.has('WITH_QEMU')
virt_daemon_units += { virt_daemon_units += {
'service': 'virtqemud', 'service': 'virtqemud',
'name': 'Libvirt qemu', 'name': 'QEMU',
'service_extra_in': files('virtqemud.service.extra.in'), 'service_extra_in': files('virtqemud.service.extra.in'),
} }

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=@name@ admin socket Description=libvirt legacy monolithic daemon admin socket
BindsTo=libvirtd.socket BindsTo=libvirtd.socket
After=libvirtd.socket After=libvirtd.socket

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=@name@ local read-only socket Description=libvirt legacy monolithic daemon read-only socket
BindsTo=libvirtd.socket BindsTo=libvirtd.socket
After=libvirtd.socket After=libvirtd.socket

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=@name@ non-TLS IP socket Description=libvirt legacy monolithic daemon non-TLS IP socket
BindsTo=libvirtd.socket BindsTo=libvirtd.socket
After=libvirtd.socket After=libvirtd.socket

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=@name@ TLS IP socket Description=libvirt legacy monolithic daemon TLS IP socket
BindsTo=libvirtd.socket BindsTo=libvirtd.socket
After=libvirtd.socket After=libvirtd.socket

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=Virtualization daemon Description=libvirt legacy monolithic daemon
# Use Wants instead of Requires so that users # Use Wants instead of Requires so that users
# can disable these three .socket units to revert # can disable these three .socket units to revert
# to a traditional non-activation deployment setup # to a traditional non-activation deployment setup

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=@name@ local socket Description=libvirt legacy monolithic daemon socket
[Socket] [Socket]
ListenStream=@runstatedir@/libvirt/libvirt-sock ListenStream=@runstatedir@/libvirt/libvirt-sock

View File

@ -191,7 +191,7 @@ if conf.has('WITH_REMOTE')
virt_daemon_units += { virt_daemon_units += {
'service': 'libvirtd', 'service': 'libvirtd',
'service_in': files('libvirtd.service.in'), 'service_in': files('libvirtd.service.in'),
'name': 'Libvirt', 'name': 'legacy monolithic',
'sockprefix': 'libvirt', 'sockprefix': 'libvirt',
'sockets': [ 'main', 'ro', 'admin', 'tcp', 'tls' ], 'sockets': [ 'main', 'ro', 'admin', 'tcp', 'tls' ],
'socket_in': files('libvirtd.socket.in'), 'socket_in': files('libvirtd.socket.in'),
@ -224,7 +224,7 @@ if conf.has('WITH_REMOTE')
virt_daemon_units += { virt_daemon_units += {
'service': 'virtproxyd', 'service': 'virtproxyd',
'name': 'Libvirt proxy', 'name': 'proxy',
'sockprefix': 'libvirt', 'sockprefix': 'libvirt',
'sockets': [ 'main', 'ro', 'admin', 'tcp', 'tls' ], 'sockets': [ 'main', 'ro', 'admin', 'tcp', 'tls' ],
} }

View File

@ -33,7 +33,7 @@ if conf.has('WITH_SECRETS')
virt_daemon_units += { virt_daemon_units += {
'service': 'virtsecretd', 'service': 'virtsecretd',
'name': 'Libvirt secret', 'name': 'secret',
} }
openrc_init_files += { openrc_init_files += {

View File

@ -111,7 +111,7 @@ if conf.has('WITH_STORAGE')
virt_daemon_units += { virt_daemon_units += {
'service': 'virtstoraged', 'service': 'virtstoraged',
'name': 'Libvirt storage', 'name': 'storage',
'service_extra_in': files('virtstoraged.service.extra.in'), 'service_extra_in': files('virtstoraged.service.extra.in'),
} }

View File

@ -57,7 +57,7 @@ if conf.has('WITH_VBOX')
virt_daemon_units += { virt_daemon_units += {
'service': 'virtvboxd', 'service': 'virtvboxd',
'name': 'Libvirt vbox', 'name': 'VirtualBox',
'service_extra_in': files('virtvboxd.service.extra.in'), 'service_extra_in': files('virtvboxd.service.extra.in'),
} }

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=@name@ admin socket Description=libvirt @name@ daemon admin socket
BindsTo=@service@.socket BindsTo=@service@.socket
After=@service@.socket After=@service@.socket
Conflicts=libvirtd-admin.socket Conflicts=libvirtd-admin.socket

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=@name@ local read-only socket Description=libvirt @name@ daemon read-only socket
BindsTo=@service@.socket BindsTo=@service@.socket
After=@service@.socket After=@service@.socket
Conflicts=libvirtd-ro.socket Conflicts=libvirtd-ro.socket

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=@name@ non-TLS IP socket Description=libvirt @name@ daemon non-TLS IP socket
BindsTo=@service@.socket BindsTo=@service@.socket
After=@service@.socket After=@service@.socket
Conflicts=libvirtd-tcp.socket Conflicts=libvirtd-tcp.socket

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=@name@ TLS IP socket Description=libvirt @name@ daemon TLS IP socket
BindsTo=@service@.socket BindsTo=@service@.socket
After=@service@.socket After=@service@.socket
Conflicts=libvirtd-tls.socket Conflicts=libvirtd-tls.socket

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=@name@ daemon Description=libvirt @name@ daemon
BindsTo=@service@.socket BindsTo=@service@.socket
Wants=@service@-ro.socket Wants=@service@-ro.socket
Wants=@service@-admin.socket Wants=@service@-admin.socket

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=@name@ local socket Description=libvirt @name@ daemon socket
Conflicts=libvirtd.socket Conflicts=libvirtd.socket
After=libvirtd.socket After=libvirtd.socket

View File

@ -48,7 +48,7 @@ if conf.has('WITH_VZ')
virt_daemon_units += { virt_daemon_units += {
'service': 'virtvzd', 'service': 'virtvzd',
'name': 'Libvirt vz', 'name': 'vz',
'service_extra_in': files('virtvzd.service.extra.in'), 'service_extra_in': files('virtvzd.service.extra.in'),
} }