/rc2.d/S50systune
http://github.com/brinkman83/bashrc · Shell · 44 lines · 27 code · 6 blank · 11 comment · 1 complexity · b2fc5eaa560e0430ef44fefe350c3982 MD5 · raw file
- #!/bin/sh
- #
- # /etc/init.d/systune
- # update-rc.d systune start 50 2 3 4 5 .
- PACKAGE="systune"
- SOURCE="systune"
- set -e
- ### BEGIN INIT INFO
- # Provides: systune
- # Required-Start: $remote_fs $syslog
- # Required-Stop:
- # Default-Start: 2 3 4 5
- # Default-Stop:
- ### END INIT INFO
- PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
- PROGRAM=/usr/sbin/systune
- NAME=systune
- DESC="tuning kernel"
- test -f $PROGRAM || exit 0
- set -e
- case "$1" in
- start)
- echo -n "Configuring kernel parameters..."
- $PROGRAM
- echo " done"
- ;;
- stop)
- ;;
- reload|restart|force-reload)
- $0 start
- ;;
- *)
- N=/etc/init.d/$NAME
- echo "Usage: $N {start|stop|reload|restart|force-reload}" >&2
- exit 1
- ;;
- esac
- exit 0