This repository has been archived on 2024-07-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
etckeeper/cron.daily/sysstat
T
2021-10-27 17:20:29 +02:00

19 lines
441 B
Bash
Executable File

#!/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