#! /bin/sh
#
# Copyright (c) 2001 SuSE GmbH Nuernberg, Germany.  All rights reserved.
#
# /etc/init.d/evms
#
### BEGIN INIT INFO
# Provides:          evms
# Required-Start: 
# X-UnitedLinux-Should-Start: iscsi
# Required-Stop:
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Description:       start Enterprise Volume Management System
### END INIT INFO

. /etc/rc.status

rc_reset

case "$1" in
  start|reload|restart|force-reload)
	#
	# If we use a serial console, don't use the fsck progress bar

	echo -n "Starting EVMS"
	evms_activate
	rc_status -v
	;;
    stop)
	echo -n "Stopping EVMS"
	rc_status -v
	;;
    status)
	rc_failed 4
	rc_status -v
	;;
    *)
	echo "Usage: $0 {start|stop|status}"
	exit 1
	;;
esac

rc_exit
