From 48959a73dfe38449d12717a44ba8e7e7612971e0 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 15 Feb 2018 15:39:08 -0500 Subject: Initial implementation --- systemd/system/qemu | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 systemd/system/qemu (limited to 'systemd/system/qemu') diff --git a/systemd/system/qemu b/systemd/system/qemu new file mode 100755 index 0000000..98ca582 --- /dev/null +++ b/systemd/system/qemu @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +source "/etc/conf.d/qemu.d/$1" +args+=( + -name "$1",debug-threads=on + -pidfile "/run/qemu-$1/pid" + -vnc unix:"/run/qemu-$1/vnc.sock" + -monitor unix:"/run/qemu-$1/monitor.sock",server,nowait + -daemonize +) +exec qemu-system-"${system}" "${args[@]}" -- cgit v1.2.3-2-g168b