Michal Privoznik 574a28c2be
app-emulation/qemu-guest-agent: Modernize init script
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>
2025-08-26 16:25:32 +01:00

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}"