You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
441 B
Plaintext

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