summaryrefslogtreecommitdiff
path: root/systemd/system/qemu
blob: 603a437d734f8e88085a0d5ecf7cf53a61d7b20a (plain)
1
2
3
4
5
6
7
8
9
10
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[@]}"