add systemd unit files
This commit is contained in:
parent
2a7a602870
commit
3b6075a0ff
15
qemu-pr-helper.service
Normal file
15
qemu-pr-helper.service
Normal 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
8
qemu-pr-helper.socket
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Persistent Reservation Daemon for QEMU
|
||||||
|
|
||||||
|
[Socket]
|
||||||
|
ListenStream=/run/qemu-pr-helper.sock
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user