add systemd unit files

This commit is contained in:
Paolo Bonzini 2017-09-22 10:13:19 +02:00
parent 2a7a602870
commit 3b6075a0ff
2 changed files with 23 additions and 0 deletions

15
qemu-pr-helper.service Normal file
View File

@ -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]

8
qemu-pr-helper.socket Normal file
View File

@ -0,0 +1,8 @@
[Unit]
Description=Persistent Reservation Daemon for QEMU
[Socket]
ListenStream=/run/qemu-pr-helper.sock
[Install]
WantedBy=multi-user.target