mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
Long due improvement. Instead of defining our own start() and stop() function, let's just define corresponding variables and let openrc do its job. Signed-off-by: Michal Privoznik <michal.privoznik@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43567 Closes: https://github.com/gentoo/gentoo/pull/43567 Signed-off-by: Sam James <sam@gentoo.org>
12 lines
463 B
Plaintext
12 lines
463 B
Plaintext
#!/sbin/openrc-run
|
|
# Copyright 1999-2024 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
GA_METHOD=${GA_METHOD:-virtio-serial}
|
|
GA_PATH=${GA_PATH:-/dev/virtio-ports/org.qemu.guest_agent.0}
|
|
|
|
description="QEMU Guest Agent (qemu-ga) for use when running inside a VM"
|
|
command="/usr/bin/qemu-ga"
|
|
pidfile="/run/qemu-ga.pid"
|
|
command_args="-m ${GA_METHOD} -p ${GA_PATH} -l /var/log/qemu-ga.log -d -f ${pidfile} -t /run ${GA_OPTIONS}"
|