]> git.pld-linux.org Git - packages/qemu.git/commitdiff
- added qemu-pr-helper systemd files from Fedora
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 26 May 2020 15:42:58 +0000 (17:42 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 26 May 2020 15:42:58 +0000 (17:42 +0200)
qemu-pr-helper.service [new file with mode: 0644]
qemu-pr-helper.socket [new file with mode: 0644]
qemu.spec

diff --git a/qemu-pr-helper.service b/qemu-pr-helper.service
new file mode 100644 (file)
index 0000000..a1d27b0
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description=Persistent Reservation Daemon for QEMU
+
+[Service]
+WorkingDirectory=/tmp
+Type=simple
+ExecStart=/usr/bin/qemu-pr-helper
+PrivateTmp=yes
+ProtectSystem=strict
+ReadWritePaths=/var/run
+RestrictAddressFamilies=AF_UNIX
+Restart=always
+RestartSec=0
+
+[Install]
diff --git a/qemu-pr-helper.socket b/qemu-pr-helper.socket
new file mode 100644 (file)
index 0000000..9d7c3e5
--- /dev/null
@@ -0,0 +1,9 @@
+[Unit]
+Description=Persistent Reservation Daemon for QEMU
+
+[Socket]
+ListenStream=/run/qemu-pr-helper.sock
+SocketMode=0600
+
+[Install]
+WantedBy=multi-user.target
index 6f7d048d60f5122479a138bdc6babb00216f7a00..810055e7343e60c568e16469be15f78744c4e536 100644 (file)
--- a/qemu.spec
+++ b/qemu.spec
@@ -61,6 +61,8 @@ Source11:     %{name}-guest-agent.service
 Source12:      99-%{name}-guest-agent.rules
 Source13:      %{name}-guest-agent.init
 Source14:      %{name}-guest-agent.logrotate
+Source15:      %{name}-pr-helper.service
+Source16:      %{name}-pr-helper.socket
 Patch0:                %{name}-cflags.patch
 Patch1:                %{name}-whitelist.patch
 Patch2:                %{name}-user-execve.patch
@@ -1031,7 +1033,7 @@ build static \
        --disable-nettle \
        --disable-pie \
        --disable-sdl \
-       --enable-slirp=internal \
+       --disable-slirp \
        --disable-spice \
        --disable-system \
        --disable-tcmalloc \
@@ -1100,6 +1102,8 @@ install -p %{SOURCE12} $RPM_BUILD_ROOT/lib/udev/rules.d
 install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga
 install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/qemu-ga
 
+cp -p %{SOURCE15} %{SOURCE16} $RPM_BUILD_ROOT%{systemdunitdir}
+
 # Install binfmt
 BINFMT_CPUS=" \
 %ifnarch %{ix86} %{x8664} x32
@@ -1219,6 +1223,7 @@ fi
 %triggerpostun common -- qemu-common < 1.6.1-4
 %systemd_trigger ksm.service
 %systemd_trigger ksmtuned.service
+%systemd_trigger qemu-pr-helper.service
 
 %post user
 %systemd_service_restart systemd-binfmt.service
@@ -1261,6 +1266,8 @@ fi
 %attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf
 %{systemdunitdir}/ksm.service
 %{systemdunitdir}/ksmtuned.service
+%{systemdunitdir}/qemu-pr-helper.service
+%{systemdunitdir}/qemu-pr-helper.socket
 %attr(755,root,root) %{_bindir}/elf2dmp
 %attr(755,root,root) %{_bindir}/ivshmem-client
 %attr(755,root,root) %{_bindir}/ivshmem-server
This page took 0.103159 seconds and 4 git commands to generate.