#!/bin/sh
#
# dlm_tune - enlarge hash tables which are too small by default on modern systems.
#
# chkconfig: 2345 23 99
# description:  Helps prevent having thousands of hash tables.
#
#

# Sanity checks.
[ -x /usr/sbin/readahead ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

start() {
    echo -n $"Enlarging DLM hash sizes: "
    /usr/local/bin/tweakdlmhash.sh >/dev/null &
    echo_success
    echo
}

stop() {
   /bin/true
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        ;;
    restart)
	stop
	start
	;;
    condrestart)
	;;
    reload)
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	;;
esac
exit $RETVAL
