diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-19 20:42:48 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-19 20:42:48 +0100 |
commit | 0f6c54fe4f918b332671d5938048d977378cc7a0 (patch) | |
tree | 60d2bad4256f29ab1a09f1b85199be0e9700d073 /app-emulation/qemu-guest-agent/files/qemu-ga.init-r1 | |
parent | 5986ab5735b24557718ed7189cffd9e64c24d32a (diff) |
app-emulation/qemu-guest-agent : fix xkeyboard-config-2.39 compatibility issues (https://bugs.gentoo.org/908699)
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-r1 | 24 |
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 $? +} |