]> xenbits.xensource.com Git - libvirt.git/commitdiff
systemd: Set service_extra_in/socket_extra_in everywhere
authorAndrea Bolognani <abologna@redhat.com>
Fri, 29 Sep 2023 13:20:07 +0000 (15:20 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 25 Oct 2023 10:19:32 +0000 (12:19 +0200)
It's somewhat confusing that some of the services have a
corresponding foo.service.extra.in and foo.socket.extra.in, some
have just one of the two, and some have neither.

In order to make things more approachable, make sure that both
files exists for each service.

In most cases the extra units are currently unused, so they will
just contain a comment briefly explaining their purpose and
pointing users to meson.build, where they can find more
information. The same comment is also added to the top of
extra units that already have some contents in them for
consistency.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
46 files changed:
src/ch/meson.build
src/ch/virtchd.service.extra.in
src/ch/virtchd.socket.extra.in [new file with mode: 0644]
src/interface/meson.build
src/interface/virtinterfaced.service.extra.in [new file with mode: 0644]
src/interface/virtinterfaced.socket.extra.in [new file with mode: 0644]
src/libxl/virtxend.service.extra.in
src/libxl/virtxend.socket.extra.in
src/locking/meson.build
src/locking/virtlockd.service.extra.in [new file with mode: 0644]
src/locking/virtlockd.socket.extra.in [new file with mode: 0644]
src/logging/meson.build
src/logging/virtlogd.service.extra.in [new file with mode: 0644]
src/logging/virtlogd.socket.extra.in [new file with mode: 0644]
src/lxc/meson.build
src/lxc/virtlxcd.service.extra.in
src/lxc/virtlxcd.socket.extra.in [new file with mode: 0644]
src/network/meson.build
src/network/virtnetworkd.service.extra.in
src/network/virtnetworkd.socket.extra.in [new file with mode: 0644]
src/node_device/meson.build
src/node_device/virtnodedevd.service.extra.in [new file with mode: 0644]
src/node_device/virtnodedevd.socket.extra.in [new file with mode: 0644]
src/nwfilter/meson.build
src/nwfilter/virtnwfilterd.service.extra.in [new file with mode: 0644]
src/nwfilter/virtnwfilterd.socket.extra.in [new file with mode: 0644]
src/qemu/meson.build
src/qemu/virtqemud.service.extra.in
src/qemu/virtqemud.socket.extra.in [new file with mode: 0644]
src/remote/libvirtd.service.extra.in [new file with mode: 0644]
src/remote/libvirtd.socket.extra.in [new file with mode: 0644]
src/remote/meson.build
src/remote/virtproxyd.service.extra.in [new file with mode: 0644]
src/remote/virtproxyd.socket.extra.in [new file with mode: 0644]
src/secret/meson.build
src/secret/virtsecretd.service.extra.in [new file with mode: 0644]
src/secret/virtsecretd.socket.extra.in [new file with mode: 0644]
src/storage/meson.build
src/storage/virtstoraged.service.extra.in
src/storage/virtstoraged.socket.extra.in [new file with mode: 0644]
src/vbox/meson.build
src/vbox/virtvboxd.service.extra.in
src/vbox/virtvboxd.socket.extra.in [new file with mode: 0644]
src/vz/meson.build
src/vz/virtvzd.service.extra.in
src/vz/virtvzd.socket.extra.in [new file with mode: 0644]

index 95e78307abc614cdb713b84b49bc6a220e9b19e5..6c8bf9c43fe8f5fd1b21f5849674b535edf3a162 100644 (file)
@@ -66,6 +66,9 @@ if conf.has('WITH_CH')
       systemd_service_tasksmax_extra_in,
       systemd_service_limitmemlock_extra_in,
     ],
+    'socket_extra_in': [
+      files('virtchd.socket.extra.in'),
+    ],
   }
 
   virt_install_dirs += [
index 3655c511306b5c704bb2f78d18d060b4ae8b3a08..8a3bc5b34dbec67dbdf0f8ffc31eb241862ed6d6 100644 (file)
@@ -1,3 +1,6 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
+
 [Unit]
 Wants=systemd-machined.service
 After=systemd-machined.service
diff --git a/src/ch/virtchd.socket.extra.in b/src/ch/virtchd.socket.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
index b1617d83e66ce8affd301d6667aa3f80ff1f675d..3d2991315eaf779f622582ef84cd402667039c94 100644 (file)
@@ -45,6 +45,12 @@ if conf.has('WITH_INTERFACE')
   virt_daemon_units += {
     'service': 'virtinterfaced',
     'name': 'interface',
+    'service_extra_in': [
+      files('virtinterfaced.service.extra.in'),
+    ],
+    'socket_extra_in': [
+      files('virtinterfaced.socket.extra.in'),
+    ],
   }
 
   openrc_init_files += {
diff --git a/src/interface/virtinterfaced.service.extra.in b/src/interface/virtinterfaced.service.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
diff --git a/src/interface/virtinterfaced.socket.extra.in b/src/interface/virtinterfaced.socket.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
index 55783aa3d5439845875671cdada2e2c9237a46e0..b367a1db4cf5f15d907871e450da7f59c657a359 100644 (file)
@@ -1,3 +1,6 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
+
 [Unit]
 Wants=virtlockd.socket
 After=virtlockd.socket
index c8322efbbc192047d7a7701f17b79846c3ca8cb3..fc73809a0ef26fe92499750d0c86ddc0aade539a 100644 (file)
@@ -1,2 +1,5 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
+
 [Unit]
 ConditionPathExists=/proc/xen/capabilities
index d15e2cb84a4d45b48697ceae6d4bfe527b9a7ea5..71e628de040ad2b549e74532a01a1ba5dce05cda 100644 (file)
@@ -145,6 +145,7 @@ if conf.has('WITH_LIBVIRTD')
     'service': 'virtlockd',
     'service_in': files('virtlockd.service.in'),
     'service_extra_in': [
+      files('virtlockd.service.extra.in'),
       systemd_service_oomscoreadjust_extra_in,
       systemd_service_limitnofile_extra_in,
     ],
@@ -152,6 +153,9 @@ if conf.has('WITH_LIBVIRTD')
     'sockets': [ 'main', 'admin' ],
     'socket_in': files('virtlockd.socket.in'),
     'socket_admin_in': files('virtlockd-admin.socket.in'),
+    'socket_extra_in': [
+      files('virtlockd.socket.extra.in'),
+    ],
   }
 
   openrc_init_files += {
diff --git a/src/locking/virtlockd.service.extra.in b/src/locking/virtlockd.service.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
diff --git a/src/locking/virtlockd.socket.extra.in b/src/locking/virtlockd.socket.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
index fbf492b16e739bd4fd1d265602302a79d6387164..f538a663fbc118baaa82629847b78d3f5997e83b 100644 (file)
@@ -92,6 +92,7 @@ if conf.has('WITH_LIBVIRTD')
     'service': 'virtlogd',
     'service_in': files('virtlogd.service.in'),
     'service_extra_in': [
+      files('virtlogd.service.extra.in'),
       systemd_service_oomscoreadjust_extra_in,
       systemd_service_limitnofile_extra_in,
     ],
@@ -99,6 +100,9 @@ if conf.has('WITH_LIBVIRTD')
     'sockets': [ 'main', 'admin' ],
     'socket_in': files('virtlogd.socket.in'),
     'socket_admin_in': files('virtlogd-admin.socket.in'),
+    'socket_extra_in': [
+      files('virtlogd.socket.extra.in'),
+    ],
   }
 
   openrc_init_files += {
diff --git a/src/logging/virtlogd.service.extra.in b/src/logging/virtlogd.service.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
diff --git a/src/logging/virtlogd.socket.extra.in b/src/logging/virtlogd.socket.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
index 977a1f0dbe8904ff0fc93e79ea2fc2dcab336e60..d8644190f0d8fa5e63baee1f89474aa08cdeadcf 100644 (file)
@@ -171,6 +171,9 @@ if conf.has('WITH_LXC')
       systemd_service_tasksmax_extra_in,
       systemd_service_limitmemlock_extra_in,
     ],
+    'socket_extra_in': [
+      files('virtlxcd.socket.extra.in'),
+    ],
   }
 
   openrc_init_files += {
index 3655c511306b5c704bb2f78d18d060b4ae8b3a08..8a3bc5b34dbec67dbdf0f8ffc31eb241862ed6d6 100644 (file)
@@ -1,3 +1,6 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
+
 [Unit]
 Wants=systemd-machined.service
 After=systemd-machined.service
diff --git a/src/lxc/virtlxcd.socket.extra.in b/src/lxc/virtlxcd.socket.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
index 3cf2ef3d3d779bcac0a0a5636f753d16166ab7b6..eb171ae7796a5655af1a666e8640eab65f2b1c36 100644 (file)
@@ -66,6 +66,9 @@ if conf.has('WITH_NETWORK')
     'service_extra_in': [
       files('virtnetworkd.service.extra.in'),
     ],
+    'socket_extra_in': [
+      files('virtnetworkd.socket.extra.in'),
+    ],
   }
 
   openrc_init_files += {
index 9fcabf652dd6cad81b39710d48c37e33448f672a..546709b7f44957264aa12be3e443baef2c612479 100644 (file)
@@ -1,2 +1,5 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
+
 [Service]
 KillMode=process
diff --git a/src/network/virtnetworkd.socket.extra.in b/src/network/virtnetworkd.socket.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
index d1e349bc5ec6b621d2c1b33398ab7a91b94753b6..d66c02a0e2ef8936a12fce5c0cf9e0c603261ca7 100644 (file)
@@ -53,6 +53,12 @@ if conf.has('WITH_NODE_DEVICES')
   virt_daemon_units += {
     'service': 'virtnodedevd',
     'name': 'nodedev',
+    'service_extra_in': [
+      files('virtnodedevd.service.extra.in'),
+    ],
+    'socket_extra_in': [
+      files('virtnodedevd.socket.extra.in'),
+    ],
   }
 
   openrc_init_files += {
diff --git a/src/node_device/virtnodedevd.service.extra.in b/src/node_device/virtnodedevd.service.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
diff --git a/src/node_device/virtnodedevd.socket.extra.in b/src/node_device/virtnodedevd.socket.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
index 1b914f2360bbe02b3472f33a01cb4ea561faaf00..de3d202267f8c512bdcc579b2911f45543916a0f 100644 (file)
@@ -51,6 +51,12 @@ if conf.has('WITH_NWFILTER')
   virt_daemon_units += {
     'service': 'virtnwfilterd',
     'name': 'nwfilter',
+    'service_extra_in': [
+      files('virtnwfilterd.service.extra.in'),
+    ],
+    'socket_extra_in': [
+      files('virtnwfilterd.socket.extra.in'),
+    ],
   }
 
   openrc_init_files += {
diff --git a/src/nwfilter/virtnwfilterd.service.extra.in b/src/nwfilter/virtnwfilterd.service.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
diff --git a/src/nwfilter/virtnwfilterd.socket.extra.in b/src/nwfilter/virtnwfilterd.socket.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
index 8cf2df36937cb9ca424836ade0e5e609ad2f56db..2279fef2caefd5e87c610e7f5395da3044ab5682 100644 (file)
@@ -190,6 +190,9 @@ if conf.has('WITH_QEMU')
       systemd_service_tasksmax_extra_in,
       systemd_service_limitmemlock_extra_in,
     ],
+    'socket_extra_in': [
+      files('virtqemud.socket.extra.in'),
+    ],
   }
 
   openrc_init_files += {
index 32aba8be9c904e66c637f9b67bc27ab04987282a..cc16b6a9bbf9c2df676f4783fc5825872fc3726a 100644 (file)
@@ -1,3 +1,6 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
+
 [Unit]
 Requires=virtlogd.socket
 Wants=virtlockd.socket
diff --git a/src/qemu/virtqemud.socket.extra.in b/src/qemu/virtqemud.socket.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
diff --git a/src/remote/libvirtd.service.extra.in b/src/remote/libvirtd.service.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
diff --git a/src/remote/libvirtd.socket.extra.in b/src/remote/libvirtd.socket.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
index 198a0ab26de21f51d95bedc8e522f5ac7fd41097..6ea157902823486904d734f8f96521276a44b133 100644 (file)
@@ -192,6 +192,7 @@ if conf.has('WITH_REMOTE')
       'service': 'libvirtd',
       'service_in': files('libvirtd.service.in'),
       'service_extra_in': [
+        files('libvirtd.service.extra.in'),
         systemd_service_limitnofile_extra_in,
         systemd_service_tasksmax_extra_in,
         systemd_service_limitmemlock_extra_in,
@@ -203,6 +204,9 @@ if conf.has('WITH_REMOTE')
       'socket_admin_in': files('libvirtd-admin.socket.in'),
       'socket_tcp_in': files('libvirtd-tcp.socket.in'),
       'socket_tls_in': files('libvirtd-tls.socket.in'),
+      'socket_extra_in': [
+        files('libvirtd.socket.extra.in'),
+      ],
     }
 
     openrc_init_files += {
@@ -229,8 +233,14 @@ if conf.has('WITH_REMOTE')
     virt_daemon_units += {
       'service': 'virtproxyd',
       'name': 'proxy',
+      'service_extra_in': [
+        files('virtproxyd.service.extra.in'),
+      ],
       'sockprefix': 'libvirt',
       'sockets': [ 'main', 'ro', 'admin', 'tcp', 'tls' ],
+      'socket_extra_in': [
+        files('virtproxyd.socket.extra.in'),
+      ],
     }
 
     openrc_init_files += {
diff --git a/src/remote/virtproxyd.service.extra.in b/src/remote/virtproxyd.service.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
diff --git a/src/remote/virtproxyd.socket.extra.in b/src/remote/virtproxyd.socket.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
index 791ce1a0248eda7a75a8644ca059805ce82a87fd..3b859ea7b444edf503f81db524f84bc2fbc9fdc4 100644 (file)
@@ -34,6 +34,12 @@ if conf.has('WITH_SECRETS')
   virt_daemon_units += {
     'service': 'virtsecretd',
     'name': 'secret',
+    'service_extra_in': [
+      files('virtsecretd.service.extra.in'),
+    ],
+    'socket_extra_in': [
+      files('virtsecretd.socket.extra.in'),
+    ],
   }
 
   openrc_init_files += {
diff --git a/src/secret/virtsecretd.service.extra.in b/src/secret/virtsecretd.service.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
diff --git a/src/secret/virtsecretd.socket.extra.in b/src/secret/virtsecretd.socket.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
index daad8abf250399b01b3307225c9158bd741fb331..404d6a6941551992c40ec65e6f2a9ea541fd42a2 100644 (file)
@@ -115,6 +115,9 @@ if conf.has('WITH_STORAGE')
     'service_extra_in': [
       files('virtstoraged.service.extra.in'),
     ],
+    'socket_extra_in': [
+      files('virtstoraged.socket.extra.in'),
+    ],
   }
 
   openrc_init_files += {
index d134ae18da21d850e70425b74b589226dae1d0f6..49fa4933e90d032a1821a74dd2e62f16b9254b1f 100644 (file)
@@ -1,3 +1,6 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
+
 [Unit]
 After=iscsid.service
 After=remote-fs.target
diff --git a/src/storage/virtstoraged.socket.extra.in b/src/storage/virtstoraged.socket.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
index e05f532e35327105375460e23c704edf3dd67d2c..a162865356ce47ee23e0c344e8b3796049fbbdcf 100644 (file)
@@ -61,6 +61,9 @@ if conf.has('WITH_VBOX')
     'service_extra_in': [
       files('virtvboxd.service.extra.in'),
     ],
+    'socket_extra_in': [
+      files('virtvboxd.socket.extra.in'),
+    ],
   }
 
   openrc_init_files += {
index ba3ad13acecec28b311b088cbda4405b43ae2c0e..5367f7516c37355bc84a36125d606a49f97928b4 100644 (file)
@@ -1,2 +1,5 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
+
 [Unit]
 After=remote-fs.target
diff --git a/src/vbox/virtvboxd.socket.extra.in b/src/vbox/virtvboxd.socket.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
index bc5b5fb623c69e31f73c3622ac9e5f09607f28df..25d2b620d16d050f8b2fdee4bcc7afa8664b1353 100644 (file)
@@ -52,6 +52,9 @@ if conf.has('WITH_VZ')
     'service_extra_in': [
       files('virtvzd.service.extra.in'),
     ],
+    'socket_extra_in': [
+      files('virtvzd.socket.extra.in'),
+    ],
   }
 
   openrc_init_files += {
index ba3ad13acecec28b311b088cbda4405b43ae2c0e..5367f7516c37355bc84a36125d606a49f97928b4 100644 (file)
@@ -1,2 +1,5 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.
+
 [Unit]
 After=remote-fs.target
diff --git a/src/vz/virtvzd.socket.extra.in b/src/vz/virtvzd.socket.extra.in
new file mode 100644 (file)
index 0000000..1fc8c67
--- /dev/null
@@ -0,0 +1,2 @@
+# The contents of this unit will be merged into a base template.
+# Additional units might be merged as well. See meson.build for details.