2019-06-25 Fred Gleason <fredg@paravelsystems.com>

* Added a sample syslog.conf(5) snippet in 'conf/syslog.conf-sample'.
	* Added a sample logrotate(5) snippet in 'conf/logrotate-sample'.
This commit is contained in:
Fred Gleason
2019-06-25 16:47:11 -04:00
parent ac4d9305bc
commit 45076b0557
5 changed files with 51 additions and 3 deletions

View File

@@ -29,9 +29,11 @@ uninstall:
rm -f $(DESTDIR)/etc/pam.d/rivendell
EXTRA_DIST = asound.conf-sample\
logrotate-sample\
rd-bin.conf.in\
rd.conf-sample\
rivendell.pam
rivendell.pam\
syslog.conf-sample
CLEANFILES = *~
DISTCLEANFILES = rdfeed.conf

18
conf/logrotate-sample Normal file
View File

@@ -0,0 +1,18 @@
#
# This defines the rotation rules for the Rivendell syslogs.
#
/var/log/rivendell/operations
/var/log/rivendell/debug
{
missingok
daily
rotate 30
maxage 30
dateext
dateyesterday
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}

16
conf/syslog.conf-sample Normal file
View File

@@ -0,0 +1,16 @@
#
# This is the syslog configuration file for Rivendell.
#
# After making changes to this file, do:
#
# systemctl restart rsyslog
#
# to make them effective.
#
LOCAL7.INFO /var/log/rivendell/operations
#
# Uncomment this line to enable debugging messages
#
# LOCAL7.DEBUG /var/log/rivendell/debug