diff options
author | Rex Dieter <rdieter@gmail.com> | 2021-07-16 11:03:54 -0500 |
---|---|---|
committer | Rex Dieter <rdieter@gmail.com> | 2021-07-16 11:07:39 -0500 |
commit | 3cd58713c958387f35897b1c82de0c749f03fa85 (patch) | |
tree | a1b8e15a69179318ab6a8eb3bb3d47206048ccfb | |
parent | 67f3f3ed350bc547f256a0323b206604ab3e9ce7 (diff) |
Provide systemd user spice-vdagent.service
-rw-r--r-- | Makefile.am | 5 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | data/spice-vdagent.service | 5 |
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 |