[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] conga/ricci/modules/cluster/clumon/init.d modc ...



CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	kupcevic sourceware org	2006-10-14 18:52:23

Modified files:
	ricci/modules/cluster/clumon/init.d: modclusterd 

Log message:
	modclusterd: init script: use correct PIDFILE

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/init.d/modclusterd.diff?cvsroot=cluster&r1=1.1&r2=1.2

--- conga/ricci/modules/cluster/clumon/init.d/modclusterd	2006/08/09 20:53:22	1.1
+++ conga/ricci/modules/cluster/clumon/init.d/modclusterd	2006/10/14 18:52:23	1.2
@@ -23,9 +23,9 @@
 export PATH
 
 ID="Cluster Module - cluster monitor"
-CLUMOND="modclusterd"
+MODCLUSTERD="modclusterd"
 CFG_FILE="/etc/cluster/cluster.conf"
-PIDFILE="/var/run/clumond.pid"
+PIDFILE="/var/run/modclusterd.pid"
 LOCKFILE="/var/lock/subsys/modclusterd"
 
 #
@@ -43,13 +43,13 @@
 case $1 in
 	start)
 		echo -n $"Starting $ID: "
-		daemon $CLUMOND
+		daemon $MODCLUSTERD
 		rtrn=$?
 		if [ $rtrn -eq 0 ]; then
 		    touch $LOCKFILE
-		    /usr/bin/logger -t $CLUMOND "startup succeeded"
+		    /usr/bin/logger -t $MODCLUSTERD "startup succeeded"
 		else
-		    /usr/bin/logger -t $CLUMOND "startup failed"
+		    /usr/bin/logger -t $MODCLUSTERD "startup failed"
 		fi
 		echo
 		;;
@@ -62,20 +62,20 @@
 		;;
 
 	status)
-		status $CLUMOND
+		status $MODCLUSTERD
 		rtrn=$?
 		;;
 
 	stop)
 		echo -n "Shutting down $ID: "
-		killproc $CLUMOND SIGTERM
+		killproc $MODCLUSTERD SIGTERM
 		rtrn=$?
 		if [ $rtrn -eq 0 ]; then
 		    rm -f $PIDFILE
 		    rm -f $LOCKFILE
-		    /usr/bin/logger -t $CLUMOND "shutdown succeeded"
+		    /usr/bin/logger -t $MODCLUSTERD "shutdown succeeded"
 		else
-		    /usr/bin/logger -t $CLUMOND "shutdown failed"
+		    /usr/bin/logger -t $MODCLUSTERD "shutdown failed"
 		fi
 		rtrn=0
 		echo


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]