forked from hashbang/shell-etc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
committing changes in /etc after apt run
Package changes: +sysstat 11.0.1-1
- Loading branch information
1 parent
b88ff98
commit a3ce2c2
Showing
13 changed files
with
404 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/usr/bin/sar.sysstat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../init.d/sysstat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../init.d/sysstat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../init.d/sysstat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../init.d/sysstat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
Oops, something went wrong.