sysstat 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/sh
  2. # Begin /etc/init.d/sysstat
  3. ########################################################################
  4. # Begin ntpd
  5. #
  6. # Description : Clear kernel counters for sysstat
  7. #
  8. # Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
  9. #
  10. # Version : LFS 7.0
  11. #
  12. ########################################################################
  13. ### BEGIN INIT INFO
  14. # Provides: Reset of system activity data collector file
  15. # Required-Start:
  16. # Should-Start:
  17. # Required-Stop:
  18. # Should-Stop:
  19. # Default-Start: S
  20. # Default-Stop:
  21. # Short-Description: Reset system activity data collector file
  22. # Description: Reset system activity data collector file
  23. # X-LFS-Provided-By: BLFS / LFS 7.0
  24. ### END INIT INFO
  25. . /lib/lsb/init-functions
  26. #$LastChangedBy: bdubbs $
  27. #$Date: 2012-05-10 17:27:43 -0500 (Thu, 10 May 2012) $
  28. case "$1" in
  29. start)
  30. log_info_msg "Calling the system activity data collector (sadc)..."
  31. /usr/lib/sa/sadc -F -L -
  32. evaluate_retval
  33. ;;
  34. *)
  35. echo "Usage: $0 start"
  36. exit 1
  37. ;;
  38. esac
  39. # End /etc/init.d/sysstat