Blame SOURCES/0013-data-remove-rsyslog-config-files.patch

a547b4
From 35fbb9fa6341ed81b5eb6a8049d1982b2ecf4aac Mon Sep 17 00:00:00 2001
a547b4
From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com>
a547b4
Date: Fri, 5 Sep 2014 15:16:34 +0200
a547b4
Subject: [PATCH] data: remove rsyslog config files
a547b4
a547b4
Many systems don't use rsyslog, others don't need seperate syslog files
a547b4
for vdagent.
a547b4
a547b4
With systemd journal, It's possible to filter
a547b4
spice-vdagent/spice-vdagentd log messages out of /var/log/messages:
a547b4
journalctl SYSLOG_IDENTIFIER=spice-vdagent SLOG_IDENTIFIER=spice-vdagentd
a547b4
a547b4
This simplify spice-vdagent packaging and updates, since there are no
a547b4
config files to deal with.
a547b4
a547b4
Related:
a547b4
https://bugzilla.redhat.com/show_bug.cgi?id=1136881
a547b4
(cherry picked from commit 072fb03fa47b18dd6cdd3b5c764d59e06fc5815e)
a547b4
---
a547b4
 Makefile.am                        | 4 ----
a547b4
 data/rsyslog.d/spice-vdagentd.conf | 4 ----
a547b4
 2 files changed, 8 deletions(-)
a547b4
 delete mode 100644 data/rsyslog.d/spice-vdagentd.conf
a547b4
a547b4
diff --git a/Makefile.am b/Makefile.am
a547b4
index 8a65704..a06a259 100644
a547b4
--- a/Makefile.am
a547b4
+++ b/Makefile.am
a547b4
@@ -51,9 +51,6 @@ gdmautostart2_DATA = $(top_srcdir)/data/spice-vdagent.desktop
a547b4
 install-data-local:
a547b4
 	$(mkdir_p) $(DESTDIR)$(localstatedir)/run/spice-vdagentd
a547b4
 
a547b4
-rsyslogdir = $(sysconfdir)/rsyslog.d
a547b4
-rsyslog_DATA = $(top_srcdir)/data/rsyslog.d/spice-vdagentd.conf
a547b4
-
a547b4
 if INIT_SCRIPT_RED_HAT
a547b4
 initdir = $(sysconfdir)/rc.d/init.d
a547b4
 init_SCRIPTS = $(top_srcdir)/data/spice-vdagentd
a547b4
@@ -83,7 +80,6 @@ EXTRA_DIST =					\
a547b4
 	README.RHEL-5				\
a547b4
 	data/70-spice-vdagentd.rules		\
a547b4
 	data/modules-load.d/spice-vdagentd.conf	\
a547b4
-	data/rsyslog.d/spice-vdagentd.conf	\
a547b4
 	data/spice-vdagent.desktop		\
a547b4
 	data/spice-vdagentd			\
a547b4
 	data/spice-vdagentd.service		\
a547b4
diff --git a/data/rsyslog.d/spice-vdagentd.conf b/data/rsyslog.d/spice-vdagentd.conf
a547b4
deleted file mode 100644
a547b4
index 2437ba0..0000000
a547b4
--- a/data/rsyslog.d/spice-vdagentd.conf
a547b4
+++ /dev/null
a547b4
@@ -1,4 +0,0 @@
a547b4
-# A template to for higher precision timestamps + severity logging
a547b4
-$template SpiceTmpl,"%TIMESTAMP%.%TIMESTAMP:::date-subseconds% %syslogtag% %syslogseverity-text%:%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"
a547b4
-
a547b4
-:programname, startswith, "spice-vdagent"	/var/log/spice-vdagent.log;SpiceTmpl