/rc2.d/S50systune

http://github.com/brinkman83/bashrc · Shell · 44 lines · 27 code · 6 blank · 11 comment · 1 complexity · b2fc5eaa560e0430ef44fefe350c3982 MD5 · raw file

  1. #!/bin/sh
  2. #
  3. # /etc/init.d/systune
  4. # update-rc.d systune start 50 2 3 4 5 .
  5. PACKAGE="systune"
  6. SOURCE="systune"
  7. set -e
  8. ### BEGIN INIT INFO
  9. # Provides: systune
  10. # Required-Start: $remote_fs $syslog
  11. # Required-Stop:
  12. # Default-Start: 2 3 4 5
  13. # Default-Stop:
  14. ### END INIT INFO
  15. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
  16. PROGRAM=/usr/sbin/systune
  17. NAME=systune
  18. DESC="tuning kernel"
  19. test -f $PROGRAM || exit 0
  20. set -e
  21. case "$1" in
  22. start)
  23. echo -n "Configuring kernel parameters..."
  24. $PROGRAM
  25. echo " done"
  26. ;;
  27. stop)
  28. ;;
  29. reload|restart|force-reload)
  30. $0 start
  31. ;;
  32. *)
  33. N=/etc/init.d/$NAME
  34. echo "Usage: $N {start|stop|reload|restart|force-reload}" >&2
  35. exit 1
  36. ;;
  37. esac
  38. exit 0