SOURCES: ApacheJServ.init - change service name; fix status

glen glen at pld-linux.org
Thu Dec 29 14:25:31 CET 2005


Author: glen                         Date: Thu Dec 29 13:25:31 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- change service name; fix status

---- Files affected:
SOURCES:
   ApacheJServ.init (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SOURCES/ApacheJServ.init
diff -u SOURCES/ApacheJServ.init:1.5 SOURCES/ApacheJServ.init:1.6
--- SOURCES/ApacheJServ.init:1.5	Thu Dec 29 14:17:47 2005
+++ SOURCES/ApacheJServ.init	Thu Dec 29 14:25:26 2005
@@ -23,7 +23,7 @@
 # Check that networking is up.
 if is_yes "${NETWORKING}"; then
 	if [ ! -f /var/lock/subsys/network ]; then
-		msg_network_down jserv
+		msg_network_down ApacheJServ
 		exit 1
 	fi
 else
@@ -41,7 +41,7 @@
   start)
 	# Check if the service is already running?
 	if [ ! -f /var/lock/subsys/jserv ]; then
-		msg_starting jserv
+		msg_starting ApacheJServ
 		getconfig || exit 1
 		start-stop-daemon --start \
 			--exec /usr/bin/env \
@@ -59,17 +59,17 @@
 			fail
 		fi
 	else
-		msg_already_running jserv
+		msg_already_running ApacheJServ
 	fi
 	;;
   stop)
 	if [ -f /var/lock/subsys/jserv ]; then
 		# Stop daemons.
-		msg_stopping jserv
+		msg_stopping ApacheJServ
 		killproc --pidfile jserv.pid jserv
 		rm -f /var/lock/subsys/jserv
 	else
-		msg_not_running jserv
+		msg_not_running ApacheJServ
 	fi
 	;;
   restart|reload)
@@ -84,7 +84,7 @@
 	exit $?
 	;;
   status)
-	status jserv
+	status jserv java
 	RETVAL=$?
 	;;
   *)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/ApacheJServ.init?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list