render / rpms / qemu

Forked from rpms/qemu 10 months ago
Clone
Daniel P. Berrange 1ad1f9
[Unit]
Daniel P. Berrange 1ad1f9
Description=QEMU Guest Agent
Paolo Bonzini bfe7b8
BindsTo=dev-virtio\x2dports-org.qemu.guest_agent.0.device
Daniel P. Berrange 1ad1f9
After=dev-virtio\x2dports-org.qemu.guest_agent.0.device
Paolo Bonzini bfe7b8
IgnoreOnIsolate=True
Daniel P. Berrange 1ad1f9
Daniel P. Berrange 1ad1f9
[Service]
Paolo Bonzini bfe7b8
UMask=0077
Paolo Bonzini bfe7b8
EnvironmentFile=/etc/sysconfig/qemu-ga
Daniel P. Berrangé 58957c
# Support upgrades from QEMU < 9.1
Daniel P. Berrangé 58957c
ExecStartPre=/bin/sh -c "if grep '^BLACKLIST_RPC' /etc/sysconfig/qemu-ga >/dev/null ; then sed -i 's/^BLACKLIST_RPC=/QEMU_GA_ARGS=--block-rpcs=/' /etc/sysconfig/qemu-ga ; fi"
Paolo Bonzini bfe7b8
ExecStart=/usr/bin/qemu-ga \
Paolo Bonzini bfe7b8
  --method=virtio-serial \
Paolo Bonzini bfe7b8
  --path=/dev/virtio-ports/org.qemu.guest_agent.0 \
Daniel P. Berrangé 58957c
  -F${FSFREEZE_HOOK_PATHNAME} \
Daniel P. Berrangé 58957c
  $QEMU_GA_ARGS
Daniel P. Berrange 1ad1f9
Restart=always
Daniel P. Berrange 1ad1f9
RestartSec=0
Daniel P. Berrange 1ad1f9
Daniel P. Berrange 1ad1f9
[Install]
Paolo Bonzini bfe7b8
WantedBy=dev-virtio\x2dports-org.qemu.guest_agent.0.device