summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-04-18 16:02:05 +0200
committerHans de Goede <hdegoede@redhat.com>2011-04-19 16:16:00 +0200
commit9bd22a5c99fa4f5bea621926dda3989e0030c281 (patch)
tree8b9b96ac3f4b3b3a19f73ecd64a409e42dfdfe79
parenta1557370b23863c655ba464d3db31a96d0c52b62 (diff)
Add tmpfiles.d entry for /var/run/spice-vdagentd
So that this dir exists when the spice-vdagentd starts.
-rw-r--r--Makefile.am6
-rw-r--r--data/spice-vdagentd.conf2
2 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 0f83138..c3881ef 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -39,4 +39,8 @@ install-data-local:
$(MKDIR_P) $(DESTDIR)$(localstatedir)/run/spice-vdagentd
-EXTRA_DIST = $(xdgautostart_DATA) $(gdmautostart_DATA) $(init_SCRIPTS)
+tmpfilesdir = $(sysconfdir)/tmpfiles.d
+tmpfiles_DATA = $(top_srcdir)/data/spice-vdagentd.conf
+
+EXTRA_DIST = $(xdgautostart_DATA) $(gdmautostart_DATA) $(init_SCRIPTS) \
+ $(tmpfiles_DATA)
diff --git a/data/spice-vdagentd.conf b/data/spice-vdagentd.conf
new file mode 100644
index 0000000..1a79963
--- /dev/null
+++ b/data/spice-vdagentd.conf
@@ -0,0 +1,2 @@
+# spice-vdagentd needs this and does not create it itself
+d /var/run/spice-vdagentd 0755 root root -