Difference between revisions of "/usr/lib/sysstat/debian-sa1"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<code>/usr/lib/sysstat/debian-sa1</code> | <code>/usr/lib/sysstat/debian-sa1</code> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | set -e | + | !/bin/sh |
− | + | # vim:ts=2:et | |
− | # Global variables: | + | # Debian sa1 helper which is run from cron.d job, not to needlessly |
− | # | + | # fill logs (see Bug#499461). |
− | # our configuration file | + | |
− | DEFAULT=/etc/default/sysstat | + | set -e |
− | # default setting, overriden in the above file | + | |
− | ENABLED=false | + | # Global variables: |
− | + | # | |
− | # Read defaults file | + | # our configuration file |
− | if [ -r "$DEFAULT" ]; then | + | DEFAULT=/etc/default/sysstat |
− | + | # default setting, overriden in the above file | |
− | fi | + | ENABLED=false |
− | + | ||
− | if [ "true" = "$ENABLED" ]; then | + | # Read defaults file |
− | + | if [ -r "$DEFAULT" ]; then | |
− | fi | + | . "$DEFAULT" |
− | + | fi | |
− | exit 0 | + | |
− | + | if [ "true" = "$ENABLED" ]; then | |
+ | exec /usr/lib/sysstat/sa1 "$@" | ||
+ | fi | ||
+ | |||
+ | exit 0 | ||
== Related terms == | == Related terms == |
Revision as of 05:59, 30 September 2020
/usr/lib/sysstat/debian-sa1
!/bin/sh # vim:ts=2:et # Debian sa1 helper which is run from cron.d job, not to needlessly # fill logs (see Bug#499461). set -e # Global variables: # # our configuration file DEFAULT=/etc/default/sysstat # default setting, overriden in the above file ENABLED=false # Read defaults file if [ -r "$DEFAULT" ]; then . "$DEFAULT" fi if [ "true" = "$ENABLED" ]; then exec /usr/lib/sysstat/sa1 "$@" fi exit 0
Related terms
See also
Advertising: