summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am5
-rw-r--r--configure.ac2
-rw-r--r--data/spice-vdagent.service5
3 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index e8fa4a6..9c30bae 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -167,6 +167,10 @@ systemdunit_DATA = \
$(top_srcdir)/data/spice-vdagentd.service \
$(top_srcdir)/data/spice-vdagentd.socket
+userunitdir = $(SYSTEMDUSERUNITDIR)
+userunit_DATA = \
+ $(top_srcdir)/data/spice-vdagent.service
+
udevrulesdir = $(udevdir)/rules.d
udevrules_DATA = $(top_srcdir)/data/70-spice-vdagentd.rules
@@ -185,6 +189,7 @@ EXTRA_DIST = \
CHANGELOG.md \
data/70-spice-vdagentd.rules \
data/spice-vdagent.desktop \
+ data/spice-vdagent.service \
data/spice-vdagentd \
data/spice-vdagentd.service \
data/spice-vdagentd.socket \
diff --git a/configure.ac b/configure.ac
index 3de9b9b..f6abf3d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -64,7 +64,9 @@ AC_MSG_RESULT($with_init_script)
if test "x$init_systemd" = "xyes"; then
SYSTEMDSYSTEMUNITDIR=`${PKG_CONFIG} systemd --variable=systemdsystemunitdir`
+ SYSTEMDUSERUNITDIR=`${PKG_CONFIG} systemd --variable=systemduserunitdir`
AC_SUBST(SYSTEMDSYSTEMUNITDIR)
+ AC_SUBST(SYSTEMDUSERUNITDIR)
# earlier versions of systemd require a separate libsystemd-daemon library
PKG_CHECK_MODULES([LIBSYSTEMD_DAEMON],
[libsystemd >= 209],
diff --git a/data/spice-vdagent.service b/data/spice-vdagent.service
new file mode 100644
index 0000000..a18f4ff
--- /dev/null
+++ b/data/spice-vdagent.service
@@ -0,0 +1,5 @@
+[Unit]
+Description=Spice guest session agent
+
+[Service]
+ExecStart=/usr/bin/spice-vdagent -x