]> Frank Brehm's Git Trees - config/weimar/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorroot <root@weimar.pb.local>
Wed, 15 Jun 2016 22:23:54 +0000 (00:23 +0200)
committerroot <root@weimar.pb.local>
Wed, 15 Jun 2016 22:23:54 +0000 (00:23 +0200)
.etckeeper
cron.d/sysstat [new file with mode: 0644]
init.d/sysstat
sysstat

index 5ba6a5180a66f45d0cfa195f523ad7bb835b02cf..49f4d31a91c042846e8b9509b706653775528e99 100755 (executable)
@@ -341,6 +341,7 @@ maybe chmod 0644 'config-archive/etc/wgetrc'
 maybe chmod 0644 'config-archive/etc/wgetrc.dist'
 maybe chmod 0755 'cron.d'
 maybe chmod 0644 'cron.d/.keep_sys-process_cronie-0'
+maybe chmod 0644 'cron.d/sysstat'
 maybe chmod 0750 'cron.daily'
 maybe chmod 0644 'cron.daily/.keep_sys-process_cronbase-0'
 maybe chmod 0755 'cron.daily/etckeeper'
diff --git a/cron.d/sysstat b/cron.d/sysstat
new file mode 100644 (file)
index 0000000..23aeba0
--- /dev/null
@@ -0,0 +1,6 @@
+# Run system activity accounting tool every 10 minutes
+*/10 * * * * root /usr/lib64/sa/sa1 1 1
+# 0 * * * * root /usr/lib64/sa/sa1 600 6 &
+# Generate a text summary of previous day process accounting at 00:07
+7 0 * * * root /usr/lib64/sa/sa2 -A
+
index 7875fcd655fd039113fd741a5403c867ed5db768..df3ad3b95a0434bc22da77e1995b13ac27ec0670 100755 (executable)
@@ -1,7 +1,7 @@
-#!/sbin/runscript
+#!/sbin/openrc-run
 # Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/sysstat/files/sysstat.init.d,v 1.4 2012/05/14 20:01:19 jer Exp $
+# $Id$
 
 depend() {
     use hostname
diff --git a/sysstat b/sysstat
index c18f2de5f1ea48b8ff312572dd1bb16a7ef52498..d1cb44f6f6fa0bae7a0350fc71ce0b3e3ce7c4e9 100644 (file)
--- a/sysstat
+++ b/sysstat
@@ -1,20 +1,28 @@
-# sysstat-11.0.2 configuration file.
+# sysstat-11.2.2 configuration file.
 
 # How long to keep log files (in days).
 # If value is greater than 28, then log files are kept in
 # multiple directories, one for each month.
 HISTORY=7
 
-# Compress (using gzip or bzip2) sa and sar files older than (in days):
+# Compress (using xz, gzip or bzip2) sa and sar files older than (in days):
 COMPRESSAFTER=10
 
 # Parameters for the system activity data collector (see sadc manual page)
 # which are used for the generation of log files.
-SADC_OPTIONS=""
+SADC_OPTIONS=" "
 
 # Directory where sa and sar files are saved.
 SA_DIR=/var/log/sa
 
 # Compression program to use.
-ZIP="bzip2"
+ZIP="xz"
 
+# By default sa2 script generates yesterday's summary, since the cron job
+# usually runs right after midnight. If you want sa2 to generate the summary
+# of the same day (for example when cron job runs at 23:53) set this variable.
+#YESTERDAY=no
+
+# By default sa2 script generates reports files (the so called sarDD files).
+# Set this variable to false to disable reports generation.
+#REPORTS=false