From 3b6075a0ff08c6398141f03f1981f2e824213cdc Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 22 Sep 2017 10:13:19 +0200 Subject: [PATCH] add systemd unit files --- qemu-pr-helper.service | 15 +++++++++++++++ qemu-pr-helper.socket | 8 ++++++++ 2 files changed, 23 insertions(+) create mode 100644 qemu-pr-helper.service create mode 100644 qemu-pr-helper.socket diff --git a/qemu-pr-helper.service b/qemu-pr-helper.service new file mode 100644 index 0000000..a1d27b0 --- /dev/null +++ b/qemu-pr-helper.service @@ -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 index 0000000..6391c3d --- /dev/null +++ b/qemu-pr-helper.socket @@ -0,0 +1,8 @@ +[Unit] +Description=Persistent Reservation Daemon for QEMU + +[Socket] +ListenStream=/run/qemu-pr-helper.sock + +[Install] +WantedBy=multi-user.target