Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
src/storage/meson.build | 8 ++++----
src/storage/virtstoraged.service.in | 27 ---------------------------
2 files changed, 4 insertions(+), 31 deletions(-)
delete mode 100644 src/storage/virtstoraged.service.in
diff --git a/src/storage/meson.build b/src/storage/meson.build
index e0a1e9f4de..90b8af4e41 100644
--- a/src/storage/meson.build
+++ b/src/storage/meson.build
@@ -111,11 +111,11 @@ if conf.has('WITH_STORAGE')
virt_daemon_units += {
'service': 'virtstoraged',
- 'service_in': files('virtstoraged.service.in'),
'name': 'Libvirt storage',
- 'socket_in': libvirtd_socket_in,
- 'socket_ro_in': libvirtd_socket_ro_in,
- 'socket_admin_in': libvirtd_socket_admin_in,
+ 'service_unit_extra': [
+ 'After=iscsid.service',
+ 'After=remote-fs.target',
+ ],
}
openrc_init_files += {
diff --git a/src/storage/virtstoraged.service.in b/src/storage/virtstoraged.service.in
deleted file mode 100644
index 235fbc6798..0000000000
--- a/src/storage/virtstoraged.service.in
+++ /dev/null
@@ -1,27 +0,0 @@
-[Unit]
-Description=Virtualization storage daemon
-Conflicts=libvirtd.service
-Requires=virtstoraged.socket
-Requires=virtstoraged-ro.socket
-Requires=virtstoraged-admin.socket
-After=network.target
-After=dbus.service
-After=iscsid.service
-After=apparmor.service
-After=remote-fs.target
-Documentation=man:virtstoraged(8)
-Documentation=https://libvirt.org
-
-[Service]
-Type=notify
-Environment=VIRTSTORAGED_ARGS="--timeout 120"
-EnvironmentFile=-@initconfdir@/virtstoraged
-ExecStart=@sbindir@/virtstoraged $VIRTSTORAGED_ARGS
-ExecReload=/bin/kill -HUP $MAINPID
-Restart=on-failure
-
-[Install]
-WantedBy=multi-user.target
-Also=virtstoraged.socket
-Also=virtstoraged-ro.socket
-Also=virtstoraged-admin.socket
--
2.41.0