File: sysstat.cron.daily

package info (click to toggle)
sysstat 12.7.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 21,156 kB
  • sloc: ansic: 49,310; sh: 1,388; xml: 1,285; makefile: 768; tcl: 756; python: 277; perl: 257
file content (22 lines) | stat: -rw-r--r-- 526 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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.

set -e

# Our configuration file
DEFAULT=/etc/default/sysstat
# Default settings, overridden in the above file
ENABLED=false

# Skip in favour of systemd timer
[ ! -d /run/systemd/system ] || exit 0

[ -x /usr/libexec/sysstat/sa2 ] || exit 0

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

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

exec /usr/libexec/sysstat/sa2 -A