#!/bin/sh
#=================================================================
# Begin sysstat
#
# Description : Reset the system activity logs
#
#=================================================================

### BEGIN INIT INFO
# Provides:            $sysstat
# Required-Start:      
# Should-Start:        
# Required-Stop:       
# Should-Stop:         
# Default-Start:       1 2 3 4 5
# Default-Stop:        0 6
# Short-Description:   Reset the system activity logs
# Description:         Reset the system activity logs
### END INIT INFO
#@(#) sysstat-12.4.0 startup script:
#@(#)    Insert a dummy record in current daily data file.
#@(#)    This indicates that the counters have restarted from 0.

. /lib/lsb/init-functions

PROG="sa1"
[ -z "$UID" ] && UID=`id -u`

case "$1" in
   start)
      log_info_msg "Calling the system activity data collector (sadc)..."
      /usr/lib/sa/$PROG --boot 2> /dev/null
      evaluate_retval
      ;;

   stop)
      ;;

   restart)
      $0 stop
      sleep 1
      $0 start
      ;;

   status)
      ;;

   *)
      echo "Usage: $0 {start|stop|restart|status}"
      exit 1
      ;;
esac

# End /etc/init.d/ntpd
