diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-02-15 15:39:08 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-02-15 15:39:08 -0500 |
commit | 48959a73dfe38449d12717a44ba8e7e7612971e0 (patch) | |
tree | 7118d80ab8d004ae2bbb7805fe72c8696bfd1a81 /systemd/system/qemu@.service |
Initial implementation
Diffstat (limited to 'systemd/system/qemu@.service')
-rw-r--r-- | systemd/system/qemu@.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/systemd/system/qemu@.service b/systemd/system/qemu@.service new file mode 100644 index 0000000..7adcbfb --- /dev/null +++ b/systemd/system/qemu@.service @@ -0,0 +1,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 |