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*