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 |
Initial implementation
Diffstat (limited to 'systemd/system/qemu')
-rwxr-xr-x | systemd/system/qemu | 11 |
1 files changed, 11 insertions, 0 deletions
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[@]}" |