summaryrefslogtreecommitdiff
path: root/systemd/system/qemu@.service
blob: 7adcbfb9a3085fd3b8084f472a30f59176bbfd52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Unit]
Description=Virtual Machine %I
Documentation=man:qemu(1)
PartOf=machines.target
Before=machines.target

[Service]
Type=forking
RuntimeDirectory=qemu-%I
PIDFile=/run/qemu-%I/pid
ExecStart=/etc/systemd/system/qemu %I
ExecStop=/bin/socat SYSTEM:'echo system_powerdown; sleep infinity' UNIX-CONNECT:/run/qemu-%I/monitor.sock

[Install]
WantedBy=machines.target