Просмотр исходного кода

Merge trunk revision 2970:
r2970 | sdake | 2010-06-28 16:30:49 -0700 (Mon, 28 Jun 2010) | 3 lines

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/branches/flatiron@2971 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 15 лет назад
Родитель
Сommit
5dde827ce9
2 измененных файлов с 4 добавлено и 2 удалено
  1. 2 2
      conf/corosync.conf.example
  2. 2 0
      corosync.spec.in

+ 2 - 2
conf/corosync.conf.example

@@ -15,10 +15,10 @@ totem {
 
 
 logging {
 logging {
 	fileline: off
 	fileline: off
-	to_stderr: yes
+	to_stderr: no
 	to_logfile: yes
 	to_logfile: yes
 	to_syslog: yes
 	to_syslog: yes
-	logfile: /tmp/corosync.log
+	logfile: /var/log/cluster/corosync.log
 	debug: off
 	debug: off
 	timestamp: on
 	timestamp: on
 	logger_subsys {
 	logger_subsys {

+ 2 - 0
corosync.spec.in

@@ -52,6 +52,7 @@ make %{_smp_mflags}
 rm -rf %{buildroot}
 rm -rf %{buildroot}
 
 
 make install DESTDIR=%{buildroot}
 make install DESTDIR=%{buildroot}
+mkdir -p -m 0700 %{buildroot}/%{_localstatedir}/log/cluster
 
 
 ## tree fixup
 ## tree fixup
 # drop static libs
 # drop static libs
@@ -106,6 +107,7 @@ fi
 %{_libexecdir}/lcrso/vsf_quorum.lcrso
 %{_libexecdir}/lcrso/vsf_quorum.lcrso
 %{_libexecdir}/lcrso/vsf_ykd.lcrso
 %{_libexecdir}/lcrso/vsf_ykd.lcrso
 %dir %{_localstatedir}/lib/corosync
 %dir %{_localstatedir}/lib/corosync
+%dir %{_localstatedir}/log/cluster
 %{_mandir}/man8/corosync_overview.8*
 %{_mandir}/man8/corosync_overview.8*
 %{_mandir}/man8/corosync.8*
 %{_mandir}/man8/corosync.8*
 %{_mandir}/man8/corosync-blackbox.8*
 %{_mandir}/man8/corosync-blackbox.8*