1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
#! /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>
# Modified for EVMS 2.0
# by Kevin Corry <corryk@us.ibm.com>
#
# This is an example SysV Init script to run an EVMS volume
# activation at boot time. If the Device-Mapper and/or MD
# kernel modules are not loaded, EVMS will load them as
# necessary.
#
# This script was written to work on Debian systems, but could
# easily be modified to work on other distributions as well.
# This script should be installed to /etc/init.d, or the
# equivalent directory for your distro. Then use your favorite
# SysV runlevel admin tool to add this script to the boot
# process for your system.
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NAME=evms
DESC="Enterprise Volume Management System"
which evms_activate || exit 1
set -e
case "$1" in
start|reload|restart|force-reload)
echo -n "Starting $DESC: "
evms_activate
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
echo "$NAME"
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
exit 1
;;
esac
exit 0
|