File: sysstat.cron.daily

package info (click to toggle)
sysstat 12.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 20,092 kB
  • sloc: ansic: 47,023; sh: 1,314; xml: 1,287; makefile: 766; tcl: 756; python: 277; perl: 257
file content (22 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (2)
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/lib/sysstat/sa2 ] || exit 0

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

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

exec /usr/lib/sysstat/sa2 -A