Difference between revisions of "/usr/lib/sysstat/debian-sa1"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
# Skip in favour of systemd timer | # Skip in favour of systemd timer | ||
− | [ ! -d /run/systemd/system ] || exit 0 | + | [ ! -d [[/run/systemd/system ]]] || exit 0 |
# Our configuration file | # Our configuration file |
Revision as of 09:06, 7 February 2023
/usr/lib/sysstat/debian-sa1
Ubuntu 22.04.1 LTS
#!/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 # Skip in favour of systemd timer [ ! -d /run/systemd/system ] || exit 0 # Our configuration file DEFAULT=/etc/default/sysstat # Default setting, overridden in the above file ENABLED=false # Read defaults file [ ! -r "$DEFAULT" ] || . "$DEFAULT" [ "$ENABLED" = "true" ] || exit 0 exec /usr/lib/sysstat/sa1 "$@"
Ubuntu
!/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
command -v
See also
Advertising: