#! /bin/sh
#
# Copyright (c) 2001 SuSE GmbH Nuernberg, Germany.  All rights reserved.
#
# /etc/init.d/boot.lvm
#
### BEGIN INIT INFO
# Provides:          boot.evms
# Required-Start:    boot.proc boot.device-mapper
# X-UnitedLinux-Should-Start: boot.ibmsis
# Required-Stop:
# Default-Start:     B
# Default-Stop:
# 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
