summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-09-09 03:14:41 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-09-09 03:14:41 -0400
commit8c39118ab79aef7795381306dd896be06952f282 (patch)
tree2e4e49a4c42fa13011a0d22e31266498d235e42d
parent895464f92f960725cf45f427dfeefcab9bce224e (diff)
Run each instance as a separate user
Apparently, systemd was happy to run all machines as a single 'qemu' user.
-rw-r--r--qemu@.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu@.service.in b/qemu@.service.in
index cc4c925..23e235e 100644
--- a/qemu@.service.in
+++ b/qemu@.service.in
@@ -8,6 +8,7 @@ Before=machines.target
Type=notify
NotifyAccess=all
DynamicUser=yes
+User=qemu-%I
RuntimeDirectory=qemu-%I
PIDFile=@runstatedir@/qemu-%I/pid
ExecStart=!@BINPROG@ %I