summaryrefslogtreecommitdiff
path: root/app-emulation/qemu-guest-agent/files/qemu-ga.init-r1
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-02 07:35:19 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-02 07:35:19 +0000
commit6e0baa42f9e9347389dbdcc349b5fe1990d1d6a4 (patch)
tree965366a0a45e5394f071b5903c92a49f9e469768 /app-emulation/qemu-guest-agent/files/qemu-ga.init-r1
parentc4febece2cd3ef082d2175dbeb5fb3b9c7437ceb (diff)
app-emulation/qemu-guest-agent : fix build
Diffstat (limited to 'app-emulation/qemu-guest-agent/files/qemu-ga.init-r1')
-rw-r--r--app-emulation/qemu-guest-agent/files/qemu-ga.init-r124
1 files changed, 24 insertions, 0 deletions
diff --git a/app-emulation/qemu-guest-agent/files/qemu-ga.init-r1 b/app-emulation/qemu-guest-agent/files/qemu-ga.init-r1
new file mode 100644
index 00000000..f08c0827
--- /dev/null
+++ b/app-emulation/qemu-guest-agent/files/qemu-ga.init-r1
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+start() {
+ GA_METHOD=${GA_METHOD:-virtio-serial}
+ GA_PATH=${GA_PATH:-/dev/virtio-ports/org.qemu.guest_agent.0}
+
+ ebegin "Starting QEMU Guest Agent"
+
+ start-stop-daemon --start --pidfile /run/qemu-ga.pid \
+ --exec /usr/bin/qemu-ga -- -m ${GA_METHOD} -p ${GA_PATH} \
+ -l /var/log/qemu-ga.log -d -f /run/qemu-ga.pid -t /run ${GA_OPTIONS}
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping QEMU Guest Agent"
+
+ start-stop-daemon --stop --pidfile /run/qemu-ga.pid
+
+ eend $?
+}