Skip to content
This repository has been archived by the owner on Jun 21, 2018. It is now read-only.

Commit

Permalink
committing changes in /etc after apt run
Browse files Browse the repository at this point in the history
Package changes:
+sysstat 11.0.1-1
  • Loading branch information
KellerFuchs authored and root committed May 18, 2016
1 parent b88ff98 commit a3ce2c2
Show file tree
Hide file tree
Showing 13 changed files with 404 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .etckeeper
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,10 @@ maybe chmod 0755 'cron.daily/logrotate'
maybe chmod 0755 'cron.daily/man-db'
maybe chmod 0755 'cron.daily/passwd'
maybe chmod 0644 'cron.daily/.placeholder'
maybe chmod 0755 'cron.daily/sysstat'
maybe chmod 0644 'cron.d/john'
maybe chmod 0644 'cron.d/.placeholder'
maybe chmod 0644 'cron.d/sysstat'
maybe chmod 0755 'cron.hourly'
maybe chmod 0555 'cron.hourly/fix-group-3000.sh'
maybe chmod 0644 'cron.hourly/.placeholder'
Expand Down Expand Up @@ -240,6 +242,7 @@ maybe chmod 0644 'default/rsyslog'
maybe chmod 0644 'default/saned'
maybe chmod 0644 'default/ssh'
maybe chmod 0644 'default/sssd'
maybe chmod 0644 'default/sysstat'
maybe chmod 0644 'default/tmpfs'
maybe chmod 0644 'default/useradd'
maybe chmod 0644 'deluser.conf'
Expand Down Expand Up @@ -475,6 +478,7 @@ maybe chmod 0755 'init.d/slashem-common'
maybe chmod 0755 'init.d/ssh'
maybe chmod 0755 'init.d/sssd'
maybe chmod 0755 'init.d/sudo'
maybe chmod 0755 'init.d/sysstat'
maybe chmod 0755 'init.d/udev'
maybe chmod 0755 'init.d/udev-finish'
maybe chmod 0755 'init.d/umountfs'
Expand Down Expand Up @@ -941,6 +945,9 @@ maybe chmod 0644 'sysctl.conf'
maybe chmod 0755 'sysctl.d'
maybe chmod 0644 'sysctl.d/10-dmsg.conf'
maybe chmod 0644 'sysctl.d/README.sysctl'
maybe chmod 0755 'sysstat'
maybe chmod 0644 'sysstat/sysstat'
maybe chmod 0644 'sysstat/sysstat.ioconf'
maybe chmod 0755 'systemd'
maybe chmod 0644 'systemd/bootchart.conf'
maybe chmod 0644 'systemd/journald.conf'
Expand Down
1 change: 1 addition & 0 deletions alternatives/sar
9 changes: 9 additions & 0 deletions cron.d/sysstat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# The first element of the path is a directory where the debian-sa1
# script is located
PATH=/usr/lib/sysstat:/usr/sbin:/usr/sbin:/usr/bin:/sbin:/bin

# Activity reports every 10 minutes everyday
5-55/10 * * * * root command -v debian-sa1 > /dev/null && debian-sa1 1 1

# Additional run at 23:59 to rotate the statistics file
59 23 * * * root command -v debian-sa1 > /dev/null && debian-sa1 60 2
18 changes: 18 additions & 0 deletions cron.daily/sysstat
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh
# Generate a daily summary of process accounting. Since this will probably
# get kicked off in the morning, it is run against the previous day data.

# our configuration file
DEFAULT=/etc/default/sysstat
# default settings, overriden in the above file
ENABLED=false

[ ! -x /usr/lib/sysstat/sa2 ] && exit 0

# read our config
[ -r "$DEFAULT" ] && . "$DEFAULT"

[ "$ENABLED" = "true" ] || exit 0

exec /usr/lib/sysstat/sa2 -A

10 changes: 10 additions & 0 deletions default/sysstat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# Default settings for /etc/init.d/sysstat, /etc/cron.d/sysstat
# and /etc/cron.daily/sysstat files
#

# Should sadc collect system activity informations? Valid values
# are "true" and "false". Please do not put other values, they
# will be overwritten by debconf!
ENABLED="false"

63 changes: 63 additions & 0 deletions init.d/sysstat
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#! /bin/sh
# vim:ft=sh:et
### BEGIN INIT INFO
# Provides: sysstat
# Required-Start: $remote_fs $local_fs $syslog
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Start/stop sysstat's sadc
# Description: Sysstat contains system performance tools for Linux
# The init file runs the sadc command in order to write
# the "LINUX RESTART" mark to the daily data file
### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/lib/sysstat/debian-sa1
NAME=sadc
DESC="the system activity data collector"

test -f "$DAEMON" || exit 0
umask 022

# our configuration file
DEFAULT=/etc/default/sysstat

# default settings...
ENABLED="false"
SA1_OPTIONS=""

# ...overriden in the configuration file
test -r "$DEFAULT" && . "$DEFAULT"

set -e
status=0

. /lib/lsb/init-functions

case "$1" in
start|restart|reload|force-reload)
if [ "$ENABLED" = "true" ] ; then
log_daemon_msg "Starting $DESC" "$NAME"
start-stop-daemon --start --quiet --exec $DAEMON -- --boot || status=$?
log_end_msg $status
fi
;;
stop)
;;
status)
if [ "$ENABLED" = "true" ] ; then
log_success_msg "sadc cron jobs are enabled"
exit 0
else
log_failure_msg "sadc cron jobs are disabled"
exit 3
fi
;;
*)
log_failure_msg "Usage: $0 {start|stop|restart|reload|force-reload|status}"
exit 1
;;
esac

exit $status
1 change: 1 addition & 0 deletions packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,7 @@ strace install
subversion install
sudo install
swaks install
sysstat install
systemd install
systemd-sysv install
sysv-rc install
Expand Down
1 change: 1 addition & 0 deletions rc2.d/S02sysstat
1 change: 1 addition & 0 deletions rc3.d/S02sysstat
1 change: 1 addition & 0 deletions rc4.d/S02sysstat
1 change: 1 addition & 0 deletions rc5.d/S02sysstat
23 changes: 23 additions & 0 deletions sysstat/sysstat
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# sysstat configuration file. See sysstat(5) manual page.

# How long to keep log files (in days).
# Used by sa2(8) script
# 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):
COMPRESSAFTER=10

# Parameters for the system activity data collector (see sadc(8) manual page)
# which are used for the generation of log files.
# By default contains the `-S DISK' option responsible for generating disk
# statisitcs. Use `-S XALL' to collect all available statistics.
SADC_OPTIONS="-S DISK"

# Directory where sa and sar files are saved.
SA_DIR=/var/log/sysstat

# Compression program to use.
ZIP="bzip2"

Loading

0 comments on commit a3ce2c2

Please sign in to comment.