#! /bin/sh
#
# evms          Enterprise Volume Management System
#
#		Written by Miquel van Smoorenburg <miquels@cistron.nl>.
#		Modified for Debian GNU/Linux
#		by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#               Modified for evms package
#               by Matt Zimmerman <mdz@debian.org>
#

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NAME=evms
DESC="Enterprise Volume Management System"

test -x /sbin/evms_activate || exit 0

. /lib/lsb/init-functions
. /etc/default/rcS

set -e

case "$1" in
  start|reload|restart|force-reload)
	log_begin_msg "Starting $DESC..."
	status=0
	if [ "$VERBOSE" != no ]; then
		evms_activate || status=$?
	else
		# Messages are still written to the log
		evms_activate >/dev/null 2>&1 || status=$?
	fi
	log_end_msg $status
	;;
  stop)
	;;
  *)
	N=/etc/init.d/$NAME
	log_success_msg "Usage: $N {start|stop|restart|reload|force-reload}"
	exit 1
	;;
esac

exit 0
