patch to change aisexec to corosync and OpenAIS to Corosync Cluster
Engine throughout the init scripts.
Index: init/redhat
===================================================================
--- init/redhat (revision 1639)
+++ init/redhat (working copy)
@@ -1,23 +1,23 @@
#!/bin/sh
#
-# OpenAIS daemon init script for Red Hat Linux and compatibles.
+# Corosync daemon init script for Red Hat Linux and compatibles.
#
# chkconfig: - 20 20
-# processname: aisexec
-# pidfile: /var/run/aisexec.pid
-# description: OpenAIS daemon
+# processname: corosync
+# pidfile: /var/run/corosync.pid
+# description: Corosync Cluster Engine
# Source function library
. /etc/rc.d/init.d/functions
-prog="aisexec"
+prog="corosync"
exec="/usr/sbin/$prog"
lockfile="/var/lock/subsys/$prog"
[ -x "$exec" ] || exit 0
start() {
- echo -n $"Starting OpenAIS daemon ($prog): "
+ echo -n $"Starting Corosync Cluster Engine ($prog): "
daemon $exec
retval=$?
[ "$retval" -eq 0 ] && touch "$lockfile"
@@ -26,7 +26,7 @@
}
stop() {
- echo -n $"Stopping OpenAIS daemon ($prog): "
+ echo -n $"Stopping Corosync Cluster Engine ($prog): "
killproc $prog
retval=$?
[ "$retval" -eq 0 ] && rm -f "$lockfile"
Index: init/generic
===================================================================
--- init/generic (revision 1639)
+++ init/generic (working copy)
@@ -1,18 +1,18 @@
#!/bin/sh
#
-# corosync Start the corosync cluster service
+# corosync Start the Corosync Cluster Engine
#
# Author: Andrew Beekhof <[EMAIL PROTECTED]>
# License: Revised BSD
#
# chkconfig: - 20 20
-# processname: aisexec
-# description: OpenAIS daemon
+# processname: corosync
+# description: Corosync Cluster Engine
#
### BEGIN INIT INFO
# Description: corosync....
#
-# Short-Description: corosync cluster services.
+# Short-Description: Corosync Cluster Engine.
# Provides: corosync
# Required-Start: $network
# Should-Start: $syslog
@@ -22,11 +22,11 @@
### END INIT INFO
do_force=0
-prog="aisexec"
+prog="corosync"
lockfile="/var/lock/subsys/$prog"
internal_status() {
- killall -0 aisexec > /dev/null 2>&1
+ killall -0 corosync > /dev/null 2>&1
return $?
}
@@ -43,7 +43,7 @@
}
start() {
- echo -n $"Starting OpenAIS daemon ($prog): "
+ echo -n $"Starting Corosync Cluster Engine ($prog): "
if
! internal_status
then
@@ -69,9 +69,9 @@
do_forever=1
stop() {
- echo -n $"Stopping OpenAIS daemon ($prog): "
+ echo -n $"Stopping Corosync Cluster Engine ($prog): "
- killall -QUIT aisexec
+ killall -QUIT corosync
if [ $do_forever = 0 ]; then
for i in 1 2 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20; do
@@ -89,7 +89,7 @@
if [ $do_force = 1 ]; then
echo -n "Escalating... "
- killall -KILL aisexec
+ killall -KILL corosync
sleep 5
if
Index: init/README
===================================================================
--- init/README (revision 1639)
+++ init/README (working copy)
@@ -1,4 +1,6 @@
-This directory contains init scripts used to autostart the ais executive.
+This directory contains init scripts used to start and stop the Corosync Cluster
+Engine.
+redhat contains an init script for Red Hat systems.
mvlcge contains an init script for MontaVista Linux systems.
-redhat contains an init script for Redhat systems.
+generic contains an init script for Generic Systems.
Index: init/mvlcge
===================================================================
--- init/mvlcge (revision 1639)
+++ init/mvlcge (working copy)
@@ -5,22 +5,22 @@
PATH=/bin:/usr/bin:/sbin:/usr/sbin
-test -f /usr/sbin/aisexec | exit 0
+test -f /usr/sbin/corosycn | exit 0
case "$1" in
start)
- echo -n "Starting Application Interface Specification Executive: "
- start-stop-daemon --start --quiet --exec /usr/sbin/aisexec
+ echo -n "Starting Corosync Cluster Engine: "
+ start-stop-daemon --start --quiet --exec /usr/sbin/corosync
echo "."
;;
stop)
- echo -n "Stopping Application Interface Specification Executive: "
- start-stop-daemon --stop --quiet --exec /usr/sbin/aisexec
+ echo -n "Stopping Corosync Cluster Engine: "
+ start-stop-daemon --stop --quiet --exec /usr/sbin/corosync
echo "."
;;
*)
- echo "Usage: /etc/init.d/ais {start|stop}" >&2
+ echo "Usage: /etc/init.d/corosync {start|stop}" >&2
exit 1
;;
esac
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais