From 60f13c03a253edb56503672a94e6d8d0f58f7f68 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Mon, 28 Jun 2010 23:30:49 +0000 Subject: [PATCH] Have corosync spec file own /var/log/cluster/corosync.log have example use /var/log/cluster/cluster.log as default log file git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2970 fd59a12c-fef9-0310-b244-a6a79926bd2f --- conf/corosync.conf.example | 4 ++-- corosync.spec.in | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/conf/corosync.conf.example b/conf/corosync.conf.example index fa4973f0..3305366b 100644 --- a/conf/corosync.conf.example +++ b/conf/corosync.conf.example @@ -15,10 +15,10 @@ totem { logging { fileline: off - to_stderr: yes + to_stderr: no to_logfile: yes to_syslog: yes - logfile: /tmp/corosync.log + logfile: /var/log/cluster/corosync.log debug: off timestamp: on logger_subsys { diff --git a/corosync.spec.in b/corosync.spec.in index bc31160d..e8f955db 100644 --- a/corosync.spec.in +++ b/corosync.spec.in @@ -61,6 +61,7 @@ make %{_smp_mflags} rm -rf %{buildroot} make install DESTDIR=%{buildroot} +mkdir -p -m 0700 %{buildroot}/%{_localstatedir}/log/cluster ## tree fixup # drop static libs @@ -116,6 +117,7 @@ fi %{_libexecdir}/lcrso/vsf_quorum.lcrso %{_libexecdir}/lcrso/vsf_ykd.lcrso %dir %{_localstatedir}/lib/corosync +%dir %{_localstatedir}/log/cluster %{_mandir}/man8/corosync_overview.8* %{_mandir}/man8/corosync.8* %{_mandir}/man8/corosync-blackbox.8*