diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2012-06-28 03:27:30 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2012-08-24 20:26:58 +0200 |
commit | 15870635f49ea33f368f0ee20bc525046e9fd635 (patch) | |
tree | 0a89ba6e73e0bdf16725bb418db8c01667279fc2 /data | |
parent | 74dbfd11ea8021608cb9c83b97f886d80c219949 (diff) | |
download | vd_agent-15870635f49ea33f368f0ee20bc525046e9fd635.tar.gz vd_agent-15870635f49ea33f368f0ee20bc525046e9fd635.tar.xz vd_agent-15870635f49ea33f368f0ee20bc525046e9fd635.zip |
Add systemd scripts
Diffstat (limited to 'data')
-rw-r--r-- | data/modules-load.d/spice-vdagentd.conf | 2 | ||||
-rw-r--r-- | data/spice-vdagentd.service | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/data/modules-load.d/spice-vdagentd.conf b/data/modules-load.d/spice-vdagentd.conf new file mode 100644 index 0000000..51d1981 --- /dev/null +++ b/data/modules-load.d/spice-vdagentd.conf @@ -0,0 +1,2 @@ +# load uinput.ko for spice input +uinput diff --git a/data/spice-vdagentd.service b/data/spice-vdagentd.service new file mode 100644 index 0000000..d301fa0 --- /dev/null +++ b/data/spice-vdagentd.service @@ -0,0 +1,19 @@ +[Unit] +Description=Agent daemon for Spice guests +After=dbus.target + +# TODO we should use: +#Requires=spice-vdagentd.socket + +# On systems without virtio spice channel, don't start +ConditionPathExists=/dev/virtio-ports/com.redhat.spice.0 + +[Service] +EnvironmentFile=-/etc/sysconfig/spice-vdagentd +ExecStartPre=/bin/rm -f /var/run/spice-vdagentd/spice-vdagent-sock +ExecStart=/usr/sbin/spice-vdagentd $SPICE_VDAGENTD_EXTRA_ARGS +PIDFile=/var/run/spice-vdagentd/spice-vdagentd.pid +PrivateTmp=true + +[Install] +WantedBy=multi-user.target |