Ver código fonte

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

Steven Dake 15 anos atrás
pai
commit
60f13c03a2
2 arquivos alterados com 4 adições e 2 exclusões
  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 {
 	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 {

+ 2 - 0
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*