mirror_corosync/init/mvlcge
2008-08-15 07:10:01 +00:00

29 lines
586 B
Bash
Executable File

#! /bin/sh
#
# Application Interface Specification Startup
# chkconfig: 2345 20 20
PATH=/bin:/usr/bin:/sbin:/usr/sbin
test -f /usr/sbin/corosync | exit 0
case "$1" in
start)
echo -n "Starting Corosync Cluster Engine: "
start-stop-daemon --start --quiet --exec /usr/sbin/corosync
echo "."
;;
stop)
echo -n "Stopping Corosync Cluster Engine: "
start-stop-daemon --stop --quiet --exec /usr/sbin/corosync
echo "."
;;
*)
echo "Usage: /etc/init.d/corosync {start|stop}" >&2
exit 1
;;
esac