PageRenderTime 81ms CodeModel.GetById 78ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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