commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject svn commit: r292037 - in /jakarta/commons/proper/daemon/trunk/src/native/unix/native: java.c jsvc-unix.c
Date Tue, 27 Sep 2005 20:47:11 GMT
Author: jfclere
Date: Tue Sep 27 13:47:08 2005
New Revision: 292037

URL: http://svn.apache.org/viewcvs?rev=292037&view=rev
Log:
Add traces.

Modified:
    jakarta/commons/proper/daemon/trunk/src/native/unix/native/java.c
    jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c

Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/java.c
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/native/java.c?rev=292037&r1=292036&r2=292037&view=diff
==============================================================================
--- jakarta/commons/proper/daemon/trunk/src/native/unix/native/java.c (original)
+++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/java.c Tue Sep 27 13:47:08
2005
@@ -343,6 +343,7 @@
         return(false);
     }
 
+    log_debug("Daemon loading...");
     ret=(*env)->CallStaticBooleanMethod(env,cls,method,className,stringArray);
     if (ret==FALSE) {
         log_error("Cannot load daemon");

Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c?rev=292037&r1=292036&r2=292037&view=diff
==============================================================================
--- jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c (original)
+++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c Tue Sep 27 13:47:08
2005
@@ -480,7 +480,11 @@
             return(4);
 #endif
     /* Initialize the Java VM */
-    if (java_init(args,data)!=true) return(1);
+    if (java_init(args,data)!=true) {
+        log_debug("java_init failed");
+        return(1);
+    } else
+        log_debug("java_init done");
 
     /* Check wether we need to dump the VM version */
     if (args->vers==true) {
@@ -497,7 +501,11 @@
     }
 
     /* Load the service */
-    if (java_load(args)!=true) return(3);
+    if (java_load(args)!=true) {
+        log_debug("java_load failed");
+        return(3);
+    } else
+        log_debug("java_load done");
 
     /* Downgrade user */
 #ifdef OS_LINUX
@@ -511,7 +519,11 @@
 #endif
 
     /* Start the service */
-    if (java_start()!=true) return(5);
+    if (java_start()!=true) {
+        log_debug("java_start failed");
+        return(5);
+    } else
+        log_debug("java_start done");
 
     /* Install signal handlers */
     handler_hup=signal_set(SIGHUP,handler);



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message