#! /bin/sh
#
# Copyright (c) 2007 SuSE Linux Products GmbH Nuernberg, Germany.  All rights reserved.
#
### BEGIN INIT INFO
# Provides:          stoppreload
# Required-Start:    $ALL boot.startpreload $remote_fs
# Required-Stop:     $null
# Default-Start:     1 2 3 5
# Default-Stop:
# Description:       Stopping and parsing the preloadtrace output
# Short-Description: Stop preload (and blktrace)
### END INIT INFO

. /etc/rc.status
rc_reset

case "$1" in
    start)
        /usr/sbin/stop_preload &
	rc_status -v -r
	;;
    stop)
	rc_status -v
	;;
    reload)
	rc_failed 3
        rc_status -v
        ;;
    status)
	rc_failed 4
	rc_status -v
	;;
    *)
	echo "Usage: $0 {start|stop|status}"
	exit 1
	;;
esac

rc_exit
