diff options
-rw-r--r-- | extras/Makefile.am | 5 | ||||
-rw-r--r-- | extras/logger.conf.example | 10 | ||||
-rw-r--r-- | glusterfs.spec.in | 5 |
3 files changed, 18 insertions, 2 deletions
diff --git a/extras/Makefile.am b/extras/Makefile.am index 2eb49aef3de..bfd9101be0d 100644 --- a/extras/Makefile.am +++ b/extras/Makefile.am @@ -5,11 +5,12 @@ EditorMode_DATA = glusterfs-mode.el glusterfs.vim SUBDIRS = init.d systemd benchmarking hook-scripts $(OCF_SUBDIR) LinuxRPM geo-rep confdir = $(sysconfdir)/glusterfs -conf_DATA = glusterfs-logrotate gluster-rsyslog-7.2.conf gluster-rsyslog-5.8.conf +conf_DATA = glusterfs-logrotate gluster-rsyslog-7.2.conf gluster-rsyslog-5.8.conf \ + logger.conf.example EXTRA_DIST = specgen.scm MacOSX/Portfile glusterfs-mode.el glusterfs.vim \ migrate-unify-to-distribute.sh backend-xattr-sanitize.sh \ backend-cleanup.sh disk_usage_sync.sh quota-remove-xattr.sh \ quota-metadata-cleanup.sh glusterfs-logrotate clear_xattrs.sh \ group-virt.example glusterd-sysconfig gluster-rsyslog-7.2.conf \ - gluster-rsyslog-5.8.conf + gluster-rsyslog-5.8.conf logger.conf.example diff --git a/extras/logger.conf.example b/extras/logger.conf.example new file mode 100644 index 00000000000..e01c141f1a0 --- /dev/null +++ b/extras/logger.conf.example @@ -0,0 +1,10 @@ +# +# Sample logger.conf file to configure enhanced Logging in RHS +# +# To enable enhanced logging capabilities, rename this file to +# +# /etc/glusterfs/logger.conf +# +# This change requires restart of all gluster services/volumes. +# +# diff --git a/glusterfs.spec.in b/glusterfs.spec.in index 9308a641f80..a0bffc014ee 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -506,6 +506,11 @@ touch %{buildroot}%{_sharedstatedir}/glusterd/geo-replication/gsyncd_template.co %{buildroot}%{_sysconfdir}/rsyslog.d/gluster.conf %endif +%if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 6 ) +%{__install} -D -p -m 0644 extras/logger.conf.example \ + %{buildroot}%{_sysconfdir}/glusterfs/logger.conf.example +%endif + # the rest of the ghosts touch %{buildroot}%{_sharedstatedir}/glusterd/glusterd.info touch %{buildroot}%{_sharedstatedir}/glusterd/options |