have corosync own the directory /var/log/cluster
have example file use /var/log/cluster/cluster.log
Regards
-steve
Index: conf/corosync.conf.example
===================================================================
--- conf/corosync.conf.example (revision 2964)
+++ conf/corosync.conf.example (working copy)
@@ -15,10 +15,10 @@
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 {
Index: corosync.spec.in
===================================================================
--- corosync.spec.in (revision 2964)
+++ corosync.spec.in (working copy)
@@ -61,6 +61,7 @@
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
+mkdir -p -m 0700 %{buildroot}/%{_localstatedir}/log/cluster
## tree fixup
# drop static libs
@@ -116,6 +117,7 @@
%{_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*
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais