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
Gitea 69b4840dd8 committing changes in /etc after apt run
Package changes:
+sysstat 12.5.2-2 amd64
2022-07-08 11:33:14 +02:00

23 lines
518 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.
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