3 # (C) 1999-2016 Sebastien Godard (sysstat <at> orange.fr)
5 #@(#) @PACKAGE_NAME@-@PACKAGE_VERSION@
6 #@(#) sa1: Collect and store binary data in system activity data file.
9 # Set default value for some variables.
10 # Used only if ${SYSCONFIG_DIR}/sysstat doesn't exist!
14 SYSCONFIG_DIR=@SYSCONFIG_DIR@
17 [ -r ${SYSCONFIG_DIR}/sysstat ] && . ${SYSCONFIG_DIR}/sysstat
18 [ -d ${SA_DIR} ] || SA_DIR=@SA_DIR@
20 if [ ${HISTORY} -gt 28 ]
22 SADC_OPTIONS="${SADC_OPTIONS} -D"
27 [ "$1" = "--boot" ] && shift && BOOT=y || BOOT=n
28 if [ $# = 0 ] && [ "${BOOT}" = "n" ]
30 # Note: Stats are written at the end of previous file *and* at the
31 # beginning of the new one (when there is a file rotation) only if
32 # outfile has been specified as '-' on the command line...
33 exec ${ENDIR}/sadc -F -L ${SADC_OPTIONS} 1 1 ${SA_DIR}
35 exec ${ENDIR}/sadc -F -L ${SADC_OPTIONS} $* ${SA_DIR}