[Pacemaker] [PATCH 2/2] extra: add logrotate configuration snippet
Florian Haas
florian at hastexo.com
Thu Jan 5 21:15:42 UTC 2012
---
extra/Makefile.am | 2 +-
extra/logrotate/Makefile.am | 5 +++++
extra/logrotate/pacemaker.conf.in | 7 +++++++
3 files changed, 13 insertions(+), 1 deletions(-)
create mode 100644 extra/logrotate/Makefile.am
create mode 100644 extra/logrotate/pacemaker.conf.in
diff --git a/extra/Makefile.am b/extra/Makefile.am
index d9e3360..6fe0a28 100644
--- a/extra/Makefile.am
+++ b/extra/Makefile.am
@@ -18,7 +18,7 @@
MAINTAINERCLEANFILES = Makefile.in
-SUBDIRS = resources rgmanager rsyslog
+SUBDIRS = resources rgmanager rsyslog logrotate
mibdir = $(datadir)/snmp/mibs
mib_DATA = PCMK-MIB.txt
diff --git a/extra/logrotate/Makefile.am b/extra/logrotate/Makefile.am
new file mode 100644
index 0000000..8e400a4
--- /dev/null
+++ b/extra/logrotate/Makefile.am
@@ -0,0 +1,5 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+logrotatedir = $(sysconfdir)/logrotate.d
+
+logrotate_DATA = pacemaker.conf
diff --git a/extra/logrotate/pacemaker.conf.in b/extra/logrotate/pacemaker.conf.in
new file mode 100644
index 0000000..3edd17e
--- /dev/null
+++ b/extra/logrotate/pacemaker.conf.in
@@ -0,0 +1,7 @@
+ at localstatedir@/log/@PACKAGE_TARNAME@/*.log {
+ rotate 4
+ weekly
+ compress
+ missingok
+ notifempty
+}
--
1.7.5.4
More information about the Pacemaker
mailing list