Description of problem: Add systemd unit files; use them by default for fc15+ and el7+ Version-Release number of selected component (if applicable): spice-vdagent-0.10.1-1.fc17.x86_64 apart from other benefits of native init system, this will allow to start spice-vdagentd only if /dev/virtio-ports/com.redhat.spice.0 is present (if some virtio-spice.device file is created for it and required by spice-vdagentd.service).
Created attachment 604416 [details] patch 1
Created attachment 604417 [details] patch 2
Created attachment 604421 [details] patch 3
Created attachment 604422 [details] patch 4
I attached a couple of patches I made in the past that used to work but were still wip. They could be good enough, but they need verification.
(In reply to comment #5) > I attached a couple of patches I made in the past that used to work but were Cool, many thanks for working on this! > still wip. They could be good enough, but they need verification. They look good to me. "they need verification", does that mean they need testing? Once they are tested feel free to push them to: http://cgit.freedesktop.org/spice/linux/vd_agent Its part of the spice group repos so you should have access.
(In reply to comment #5) > I attached a couple of patches I made in the past that used to work but were > still wip. They could be good enough, but they need verification. Thanks, I've merged and tested them, they work as advertised :) I've added a small patch on top to use hardware activation for the systemd service, making systemd start the service on the addition of the /dev/virtio-ports/com.redhat.spice.0 device. You can find the merged patches here: http://cgit.freedesktop.org/spice/linux/vd_agent
spice-vdagent-0.12.0-1.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/spice-vdagent-0.12.0-1.fc18
Package spice-vdagent-0.12.0-1.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing spice-vdagent-0.12.0-1.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-13159/spice-vdagent-0.12.0-1.fc18 then log in and leave karma (feedback).
spice-vdagent-0.12.0-1.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.