소스 검색

Update svn commit scripts so they work properly and have proper permissions.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1640 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 17 년 전
부모
커밋
817b07cd79
4개의 변경된 파일27개의 추가작업 그리고 25개의 파일을 삭제
  1. 4 2
      init/README
  2. 10 10
      init/generic
  3. 6 6
      init/mvlcge
  4. 7 7
      init/redhat

+ 4 - 2
init/README

@@ -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.

+ 10 - 10
init/generic

@@ -1,18 +1,18 @@
 #!/bin/sh
 #
-# corosync       Start the corosync cluster service
+# corosync       Start the Corosync Cluster Engine
 #
 # Author:       Andrew Beekhof <abeekhof@suse.de>
 # 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 @@ status() {
 }
 
 start() {
-    echo -n $"Starting OpenAIS daemon ($prog): "
+    echo -n $"Starting Corosync Cluster Engine ($prog): "
     if 
 	! internal_status
     then
@@ -69,9 +69,9 @@ do_force=0
 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 @@ stop() {
 
 	if [ $do_force = 1 ]; then
 	    echo -n "Escalating... "
-	    killall -KILL aisexec
+	    killall -KILL corosync
 	    sleep 5
 	    
 	    if

+ 6 - 6
init/mvlcge

@@ -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

+ 7 - 7
init/redhat

@@ -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 @@ start() {
 }
 
 stop() {
-    echo -n $"Stopping OpenAIS daemon ($prog): "
+    echo -n $"Stopping Corosync Cluster Engine ($prog): "
     killproc $prog
     retval=$?
     [ "$retval" -eq 0 ] && rm -f "$lockfile"