DO NOT REPLY [Bug 34852] - [daemon] jsvc crashes with -user root
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34852. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34852 --- Additional Comments From [EMAIL PROTECTED] 2005-05-11 11:57 --- # find / -name .java.policy No files found -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r169616 - /jakarta/commons/proper/daemon/trunk/src/native/unix/man/jsvc.1.xml
Author: jfclere Date: Wed May 11 03:04:10 2005 New Revision: 169616 URL: http://svn.apache.org/viewcvs?rev=169616view=rev Log: add the new option wait and stop. Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/man/jsvc.1.xml Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/man/jsvc.1.xml URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/man/jsvc.1.xml?rev=169616r1=169615r2=169616view=diff == --- jakarta/commons/proper/daemon/trunk/src/native/unix/man/jsvc.1.xml (original) +++ jakarta/commons/proper/daemon/trunk/src/native/unix/man/jsvc.1.xml Wed May 11 03:04:10 2005 @@ -5,8 +5,8 @@ refmeta refentrytitleJSVC/refentrytitle manvolnum1/manvolnum -refmiscinfo class='date'October 2004/refmiscinfo -refmiscinfo class='source'Jsvc version 1.0/refmiscinfo +refmiscinfo class='date'May 2005/refmiscinfo +refmiscinfo class='source'Jsvc version 1.0.1/refmiscinfo refmiscinfo class='manual'Jakarta project/refmiscinfo /refmeta refnamediv id='name' @@ -27,7 +27,9 @@ arg choice='opt'-nodetach/arg arg choice='opt'-debug/arg arg choice='opt'-check/arg - arg choice='opt'-user/arg + arg choice='opt'-user replaceableuser/replaceable/arg + arg choice='opt'-wait replaceablewaittime/replaceable/arg + arg choice='opt'-stop/arg arg choice='opt'-verbosereplaceable:class|gc|jni/replaceable/arg arg choice='opt'-outfile replaceable/full/path/to/file/replaceable/arg arg choice='opt'-errfile replaceable/full/path/to/file/replaceable/arg @@ -100,7 +102,21 @@ /listitem /varlistentry varlistentry -termoption-user/option/term +termoption-stop/option/term +listitem + parastop the service using the file given in the -pidfile option/para +/listitem + /varlistentry + varlistentry +termoption-wait/option waittime/term +listitem + parawait up to waittime seconds for the service to start + waittime should multiple of 10 (min=10) + /para +/listitem + /varlistentry + varlistentry +termoption-user/option user/term listitem parauser used to run the daemon (defaults to current user)/para /listitem - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31682] - [daemon] manpage for jsvc
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31682. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31682 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-05-11 12:11 --- the xml file has been added to the repos (and updated to 1.0.1). -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33581] - [daemon] Making jsvc multiple instances enabled
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=33581. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33581 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-05-11 12:33 --- Added -pidfile and -Dcatalina.base= to make it more easy. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34851] - [daemon] jsvc should instantiate server only once
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34851. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34851 --- Additional Comments From [EMAIL PROTECTED] 2005-05-12 01:04 --- Thanks for fixing this -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34140] - [daemon] jsvc does not block on Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34140. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34140 [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED | --- Additional Comments From [EMAIL PROTECTED] 2005-05-12 01:37 --- Thank you for the new solution. However I re-opened this record because the change does not fully fix the bug. Fully fixing it should be easy after the main work has already been done. Background: --- The new solution is too complicated in a commercial environment. The main reason for this is as follows: Generally speaking, polling loops are temporary workarounds that should be eliminated as soon as other methods such as interrupts or callbacks are available. I apologise if my own workaround example has inspired the new solution. Please consider that the problem at hand is very common in computer programming, which explains the existence of various techniques that solve the issue at hand in better ways. One of them, probably not ideal for this issue, is FAM, the File Alteration Monitor, that provides a daemon and an API which applications can use for notification of changes in specific files or directories. This is installed with out-of-the-box RedHat Linux distributions. Being a workaround, the current jsvc solution should NOT manifest itself in an additional parameter (syntax) that would have to be discontinued after a better solution is implemented. To back up this claim, it has to be said that there are virtually no instances across many environments and languages of common commands that require a timeout parameter. The simple reason for this is that in most computer languages, most commands are blocking, returning only after the task is completed. The task at hand here is the initialisation and starting of a daemon/service. Suggestions: The -wait parameter should be removed while the blocking behavior should be retained. Question: How can jsvc block without a -wait parameter? Answer: jsvc should not return until the service is started. If it took an infinite time, then jsvc simply would not return. Specifics: a) If no other solution than a polling loop is available, then the polling frequency should be fixed, in the order of 10 loops per second. The current new solution appears to have a fixed but lower polling frequency. b) jsvc should ALWAYS block; it should never return before (or significantly after) startup of the service or in case of errors. There is no compelling reason why it should not do so. Having a -wait parameter is confusing. If an application wants non-blocking behavior, then it is trivial for this application to do that whith a blocking jsvc by means of launching jsvc in a separate process. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r169424 - /jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
Author: jfclere Date: Mon May 9 23:45:57 2005 New Revision: 169424 URL: http://svn.apache.org/viewcvs?rev=169424view=rev Log: When waittime/10 is bigger than 10 exchange waittime and count. Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c 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=169424r1=169423r2=169424view=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 Mon May 9 23:45:57 2005 @@ -374,6 +374,10 @@ int i, status, waittime; log_debug(wait_child %d, pid); waittime = args-wait/10; +if (waittime10) { +count = waittime; +waittime = 10; +} while (count0) { sleep(1); /* check if the controler is still running */ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34140] - [daemon] jsvc does not block on Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34140. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34140 [EMAIL PROTECTED] changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-05-10 09:26 --- the (new) -wait option allows this to work. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34199] - [commons-daemon]: jsvc should return non-0 code if class not found
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34199. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34199 [EMAIL PROTECTED] changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-05-10 09:28 --- using the -wait option jsvc returns 1 if the class is not found. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34851] New: - [commons-daemon]: jsvc should instantiate server only once
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34851. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34851 Summary: [commons-daemon]: jsvc should instantiate server only once Product: Commons Version: 1.0 Final Platform: Other OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: Daemon AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] Configuration: Red Hat Linux 9 j2sdk-1_4_2_07 jsvc 1.0 Expected behavior: jsvc should call the constructor of the java class implementing the Daemon interface only once. Actual behavior: jsvc calls the constructor 2 times. Notes: It may well be justifiable to instantiate the class more than once from the jsvc programmer's point of view. However this is in conflict with the requirements of a Java demon/service. The double successive instantiation of the same Java server can create severe resource problems. There is no guarantee that these problems are not created because there is no convention that documents this double instantiation. Apart from possible resource contention issues, there is a more undisputable obvious problem: Performance. The instantiation of a server is typically a time consuming process. The server startup time has to be kept at a minimum to minimise service disruptions due to re-starts. In this context it is extremely hard to accept if not unaceptable that this task is performed more than once. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34851] - [commons-daemon]: jsvc should instantiate server only once
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34851. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34851 --- Additional Comments From [EMAIL PROTECTED] 2005-05-11 01:44 --- Created an attachment (id=14989) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=14989action=view) Daemon test Java source file Testcase demonstrates multiple constructor execution -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34852] New: - [commons-daemon]: jsvc crases with -user root
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34852. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34852 Summary: [commons-daemon]: jsvc crases with -user root Product: Commons Version: Nightly Builds Platform: Other OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: Daemon AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] Configuration: Apache/2.0.40 (Red Hat Linux) mod_jk 1.2.8 Tomcat 5.5.7 Red Hat Linux 9 j2sdk-1_4_2_07 Expected behavior: jsvc should be able to run the Java daemon as user root Actual behavior: jsvc crashes: java.lang.ClassNotFoundException: DaemonTest at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.commons.daemon.support.DaemonLoader.check(DaemonLoader.java:109) jsvc.exec error: An error was detected checking the DaemonTest daemon jsvc.exec error: Service exit with a return value of 2 I don't know what causes this. In the attached script, I change the variable DAEMON_USER=otheruser; to DAEMON_USER=root; and only then jsvc crashes wile with DAEMON_USER=otheruser; it runs. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34852] - [commons-daemon]: jsvc crases with -user root
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34852. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34852 --- Additional Comments From [EMAIL PROTECTED] 2005-05-11 04:04 --- Created an attachment (id=14990) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=14990action=view) Java test daemon -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34852] - [commons-daemon]: jsvc crases with -user root
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34852. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34852 --- Additional Comments From [EMAIL PROTECTED] 2005-05-11 04:05 --- Created an attachment (id=14991) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=14991action=view) bash shell script -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r169326 - /jakarta/commons/proper/daemon/trunk/src/native/unix/native/java.c /jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
Author: jfclere Date: Mon May 9 08:14:56 2005 New Revision: 169326 URL: http://svn.apache.org/viewcvs?rev=169326view=rev Log: replace pause() by call of the java/lang/Thread.sleep(). 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=169326r1=169325r2=169326view=diff == --- jakarta/commons/proper/daemon/trunk/src/native/unix/native/java.c (original) +++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/java.c Mon May 9 08:14:56 2005 @@ -271,7 +271,7 @@ jsvc_xlate_to_ascii(exitparams); method=(*env)-GetStaticMethodID(env,system,exitclass,exitparams); if (method==NULL) { -log_error(Cannot found \System.exit(int)\ entry point); +log_error(Cannot find \System.exit(int)\ entry point); return(false); } @@ -335,7 +335,7 @@ jsvc_xlate_to_ascii(loadparams); method=(*env)-GetStaticMethodID(env,cls,load,loadparams); if (method==NULL) { -log_error(Cannot found Daemon Loader \load\ entry point); +log_error(Cannot find Daemon Loader \load\ entry point); return(false); } @@ -360,7 +360,7 @@ jsvc_xlate_to_ascii(startparams); method=(*env)-GetStaticMethodID(env,cls,start,startparams); if (method==NULL) { -log_error(Cannot found Daemon Loader \start\ entry point); +log_error(Cannot find Daemon Loader \start\ entry point); return(false); } @@ -372,6 +372,34 @@ log_debug(Daemon started successfully); return(true); +} + +/* + * call the java sleep to prevent problems with threads + */ +void java_sleep(int wait) { +jclass clsThread; +jmethodID method; +char jsleep[]=sleep; +char jsleepparams[]=(J)V; +char jthread[]=java/lang/Thread; + +jsvc_xlate_to_ascii(jsleep); +jsvc_xlate_to_ascii(jsleepparams); +jsvc_xlate_to_ascii(jthread); + +clsThread = (*env)-FindClass(env,jthread); +if (clsThread==NULL) { +log_error(Cannot find java/lang/Thread class); +return; +} +method=(*env)-GetStaticMethodID(env,clsThread,jsleep,jsleepparams); +if (method==NULL) { +log_error(Cannot found the sleep entry point); +return; +} + +(*env)-CallStaticVoidMethod(env,clsThread,method,(jlong)wait*1000); } /* Call the stop method in our daemon loader */ 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=169326r1=169325r2=169326view=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 Mon May 9 08:14:56 2005 @@ -504,7 +504,8 @@ create_tmp_file(args); while (!stopping) { #ifdef OSD_POSIX -pause(); +java_sleep(60); +/* pause(); */ #else sleep(60); /* pause() not threadsafe */ #endif - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r169335 - /jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
Author: jfclere Date: Mon May 9 09:00:47 2005 New Revision: 169335 URL: http://svn.apache.org/viewcvs?rev=169335view=rev Log: Allow initgroups() to fail if we are already the user requested. (That is to allow testing without beeing root). Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c 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=169335r1=169334r2=169335view=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 Mon May 9 09:00:47 2005 @@ -90,8 +90,11 @@ return(-1); } if (initgroups(user, gid)!=0) { -log_error(Cannot set supplement group list for user '%s',user); -return(-1); +if (getuid()!= uid) { +log_error(Cannot set supplement group list for user '%s',user); +return(-1); +} else +log_debug(Cannot set supplement group list for user '%s',user); } if (setuid(uid)!=0) { log_error(Cannot set user id for user '%s',user); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r165124 - in /jakarta/commons/proper/daemon/trunk/src/native/unix/native: arguments.c arguments.h jsvc-unix.c
Author: jfclere Date: Thu Apr 28 02:36:02 2005 New Revision: 165124 URL: http://svn.apache.org/viewcvs?rev=165124view=rev Log: Allow to use a parameter value for the maximum waiting time. The minimum supported is 10, default behaviour is to return without waiting for the JVM to start. The value are rounded to by 10% of the value because the logic makes only 10 waiting loops. Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.c jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.h jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.c URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.c?rev=165124r1=165123r2=165124view=diff == --- jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.c (original) +++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.c Thu Apr 28 02:36:02 2005 @@ -43,7 +43,7 @@ args-help=false; /* Don't display help */ args-chck=false; /* Don't do a check-only startup */ args-stop=false; /* Stop a running jsvc */ -args-wait=false; /* Wait until jsvc has started the JVM */ +args-wait=0; /* Wait until jsvc has started the JVM */ args-install=false;/* Don't install as a service */ args-remove=false; /* Don't remove the installed service */ args-service=false;/* Don't run as a service */ @@ -116,7 +116,13 @@ log_debug_flag=true; } else if (strcmp(argv[x],-wait)==0) { -args-wait=true; +temp=optional(argc,argv,x++); +if (temp!=NULL) +args-wait=atoi(temp); +if (args-wait10) { +log_error(Invalid wait time specified (min=10)); +return(NULL); +} } else if (strcmp(argv[x],-stop)==0) { args-stop=true; @@ -256,7 +262,7 @@ log_debug(| Stop:%s,IsTrueFalse(args-stop)); -log_debug(| Wait:%s,IsTrueFalse(args-wait)); +log_debug(| Wait:%d,args-wait); log_debug(| Run as service: %s,IsYesNo(args-service)); Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.h URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.h?rev=165124r1=165123r2=165124view=diff == --- jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.h (original) +++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.h Thu Apr 28 02:36:02 2005 @@ -53,8 +53,8 @@ bool chck; /** Stop running jsvc */ bool stop; -/** Wait until service started */ -bool wait; +/** number of seconds to until service started */ +int wait; /** Install as a service (win32) */ bool install; /** Remove when installed as a service (win32) */ 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=165124r1=165123r2=165124view=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 Thu Apr 28 02:36:02 2005 @@ -368,8 +368,9 @@ bool havejvm=false; int fd; char buff[80]; -int i, status; +int i, status, waittime; log_debug(wait_child %d, pid); +waittime = args-wait/10; while (count0) { sleep(1); /* check if the controler is still running */ @@ -406,10 +407,10 @@ } } } -sleep(5); +sleep(waittime); count--; } -return(1); /* It takes more than a minute to start, something must be wrong */ +return(1); /* It takes more than the wait time to start, something must be wrong */ } /* @@ -649,7 +650,7 @@ } /* If we're in the parent process */ if (pid!=0) { -if (args-wait==true) +if (args-wait=10) return(wait_child(args,pid)); else return(0); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r165006 - in /jakarta/commons/proper/daemon/trunk/src/native/unix/native: java.c jsvc-unix.c location.c
Author: jfclere Date: Wed Apr 27 09:28:57 2005 New Revision: 165006 URL: http://svn.apache.org/viewcvs?rev=165006view=rev Log: Arrange support for BS2000 mainframe. Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/java.c jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c jakarta/commons/proper/daemon/trunk/src/native/unix/native/location.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=165006r1=165005r2=165006view=diff == --- jakarta/commons/proper/daemon/trunk/src/native/unix/native/java.c (original) +++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/java.c Wed Apr 27 09:28:57 2005 @@ -114,6 +114,8 @@ } /* Load the JVM library */ +#ifdef OSD_POSIX +#else libh=dso_link(libf); if (libh==NULL) { log_error(Cannot dynamically link to %s,libf); @@ -121,6 +123,7 @@ return(false); } log_debug(JVM library %s loaded,libf); +#endif #ifdef OS_DARWIN /* @@ -148,6 +151,8 @@ } log_debug(Shell library %s loaded,appf); #endif /* ifdef OS_DARWIN */ +#ifdef OSD_POSIX +#else symb=dso_symbol(libh,JNI_CreateJavaVM); if (symb==NULL) { #ifdef OS_DARWIN @@ -161,6 +166,7 @@ #endif /* ifdef OS_DARWIN */ } log_debug(JVM library entry point found (0x%08X),symb); +#endif /* Prepare the VM initialization arguments */ @@ -173,6 +179,12 @@ #else arg.version=JNI_VERSION_1_2; #endif +#ifdef OSD_POSIX_JFC +if (JNI_GetDefaultJavaVMInitArgs(arg)0) { +log_error(Cannot init default JVM default args); +return(false); +} +#endif arg.ignoreUnrecognized=FALSE; arg.nOptions=args-onum; arg.nOptions++; /* Add abort code */ @@ -182,7 +194,8 @@ jsvc_xlate_to_ascii(opt[x].optionString); opt[x].extraInfo=NULL; } -opt[x].optionString=abort; +opt[x].optionString=strdup(abort); +jsvc_xlate_to_ascii(opt[x].optionString); opt[x].extraInfo=java_abort123; arg.options=opt; @@ -204,8 +217,12 @@ } /* And finally create the Java VM */ +#ifdef OSD_POSIX +ret=JNI_CreateJavaVM(jvm, env, arg); +#else ret=(*symb)(jvm, env, arg); -if (ret!=0) { +#endif +if (ret0) { log_error(Cannot create Java VM); return(false); } 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=165006r1=165005r2=165006view=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 Wed Apr 27 09:28:57 2005 @@ -501,7 +501,13 @@ controlled = getpid(); log_debug(Waiting for a signal to be delivered); create_tmp_file(args); -while (!stopping) sleep(60); /* pause() not threadsafe */ +while (!stopping) { +#ifdef OSD_POSIX +pause(); +#else +sleep(60); /* pause() not threadsafe */ +#endif +} remove_tmp_file(args); log_debug(Shutdown or reload requested: exiting); Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/location.c URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/native/location.c?rev=165006r1=165005r2=165006view=diff == --- jakarta/commons/proper/daemon/trunk/src/native/unix/native/location.c (original) +++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/location.c Wed Apr 27 09:28:57 2005 @@ -80,8 +80,8 @@ we're not going to find anything, but hope never dies... */ $JAVA_HOME/jre/lib/ CPU /classic/green_threads/libjvm.so, #if defined(OSD_POSIX) -$JAVA_HOME/jre/lib/sparc/client/green_threads/libjvm.so, -$JAVA_HOME/jre/lib/s390/client/green_threads/libjvm.so, +$JAVA_HOME/lib/s390/client/green_threads/libjvm.so, +$JAVA_HOME/lib/sparc/client/green_threads/libjvm.so, #endif $JAVA_HOME/jre/lib/classic/libjvm.so, $JAVA_HOME/jre/lib/client/libjvm.so, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r164542 - /jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
Author: jfclere Date: Mon Apr 25 00:08:53 2005 New Revision: 164542 URL: http://svn.apache.org/viewcvs?rev=164542view=rev Log: Arrange warnings in Solaris8. Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c 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=164542r1=164541r2=164542view=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 Mon Apr 25 00:08:53 2005 @@ -345,7 +345,7 @@ static void create_tmp_file(arg_data *args) { char buff[80]; int fd; -sprintf(buff,/tmp/%d.jsvc_up, getpid()); +sprintf(buff,/tmp/%d.jsvc_up, (int) getpid()); log_debug(create_tmp_file: %s, buff); fd = open(buff, O_RDWR|O_CREAT,S_IRUSR|S_IWUSR); if (fd0) @@ -354,7 +354,7 @@ } static void remove_tmp_file(arg_data *args) { char buff[80]; -sprintf(buff,/tmp/%d.jsvc_up, getpid()); +sprintf(buff,/tmp/%d.jsvc_up, (int) getpid()); log_debug(remove_tmp_file: %s, buff); unlink(buff); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r164389 - /jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
Author: jfclere Date: Sat Apr 23 07:36:26 2005 New Revision: 164389 URL: http://svn.apache.org/viewcvs?rev=164389view=rev Log: Get -wait option working correctly. Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c 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=164389r1=164388r2=164389view=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 Sat Apr 23 07:36:26 2005 @@ -269,7 +269,7 @@ buff[i] = '\0'; pid = atoi(buff); if (kill(pid, 0)==0) { -log_error(Still running according to PID file %s, PID is %d,args-pidf,pidn); +log_error(Still running according to PID file %s, PID is %d,args-pidf,pid); lockf(fd,F_ULOCK,0); close(fd); return(122); @@ -322,6 +322,10 @@ /* * Check temporatory file created by controller * /tmp/pid.jsvc_up + * Notes: + * we fork several times + * 1 - to be a daemon before the setsid(), the son is the controler process. + * 2 - to start the JVM in the son process. (whose pid is stored in pidfile). */ static int check_tmp_file(arg_data *args) { int pid; @@ -364,12 +368,18 @@ bool havejvm=false; int fd; char buff[80]; -int i; +int i, status; log_debug(wait_child %d, pid); while (count0) { +sleep(1); /* check if the controler is still running */ -if (kill(pid, 0)!=0) -return(1); +if (waitpid(pid,status,WNOHANG)==pid) { +if (WIFEXITED(status)) +return(WEXITSTATUS(status)); +else +return(1); +} + /* check if the pid file process exists */ fd = open(args-pidf, O_RDONLY); if (fd0 havejvm) @@ -384,14 +394,22 @@ if (kill(i, 0)==0) { /* the JVM process has started */ havejvm=true; -if (check_tmp_file(args)==0) +if (check_tmp_file(args)==0) { +/* the JVM is started */ +if (waitpid(pid,status,WNOHANG)==pid) { +if (WIFEXITED(status)) +return(WEXITSTATUS(status)); +else +return(1); +} return(0); /* ready JVM started */ +} } } -sleep(6); +sleep(5); count--; } -return(1); +return(1); /* It takes more than a minute to start, something must be wrong */ } /* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r164409 - /jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
Author: jfclere Date: Sat Apr 23 12:07:40 2005 New Revision: 164409 URL: http://svn.apache.org/viewcvs?rev=164409view=rev Log: Add logic to stop jsvcAdd logic to stop jsvc. Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c 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=164409r1=164408r2=164409view=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 Sat Apr 23 12:07:40 2005 @@ -413,6 +413,26 @@ } /* + * stop the running jsvc + */ +static int stop_child(arg_data *args) { +int pid=get_pidf(args); +int count=10; +if (pid0) { +/* kill the process and wait until the pidfile has been removed by the controler */ +kill(pid,SIGTERM); +while (count0) { +sleep(6); +pid=get_pidf(args); +if (pid=0) +return(0); /* JVM has stopped */ +count--; +} +} +return(-1); +} + +/* * son process logic. */ @@ -559,6 +579,10 @@ /* Parse command line arguments */ args=arguments(argc,argv); if (args==NULL) return(1); + +/* Stop running jsvc if required */ +if (args-stop==true) +return(stop_child(args)); /* Let's check if we can switch user/group IDs */ if (checkuser(args-user, uid, gid)==false) return(1); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r164252 - in /jakarta/commons/proper/daemon/trunk/src/native/unix/native: arguments.c arguments.h jsvc-unix.c
Author: jfclere Date: Fri Apr 22 09:34:52 2005 New Revision: 164252 URL: http://svn.apache.org/viewcvs?rev=164252view=rev Log: Try to implement wait until JVM is started... Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.c jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.h jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.c URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.c?rev=164252r1=164251r2=164252view=diff == --- jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.c (original) +++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.c Fri Apr 22 09:34:52 2005 @@ -42,6 +42,8 @@ args-vers=false; /* Don't display version */ args-help=false; /* Don't display help */ args-chck=false; /* Don't do a check-only startup */ +args-stop=false; /* Stop a running jsvc */ +args-wait=false; /* Wait until jsvc has started the JVM */ args-install=false;/* Don't install as a service */ args-remove=false; /* Don't remove the installed service */ args-service=false;/* Don't run as a service */ @@ -112,6 +114,12 @@ } else if (strcmp(argv[x],-debug)==0) { log_debug_flag=true; + +} else if (strcmp(argv[x],-wait)==0) { +args-wait=true; + +} else if (strcmp(argv[x],-stop)==0) { +args-wait=true; } else if (strcmp(argv[x],-check)==0) { args-chck=true; Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.h URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.h?rev=164252r1=164251r2=164252view=diff == --- jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.h (original) +++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.h Fri Apr 22 09:34:52 2005 @@ -51,6 +51,10 @@ bool help; /** Only check environment without running the service. */ bool chck; +/** Stop running jsvc */ +bool stop; +/** Wait until service started */ +bool wait; /** Install as a service (win32) */ bool install; /** Remove when installed as a service (win32) */ 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=164252r1=164251r2=164252view=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 Fri Apr 22 09:34:52 2005 @@ -294,6 +294,107 @@ } /* + * read the pid from the pidfile + */ +static int get_pidf(arg_data *args) { +int fd; +int i; +char buff[80]; + +fd = open(args-pidf, O_RDONLY, 0); +log_debug(get_pidf: %d in %s, fd, args-pidf); +if (fd0) +return(-1); /* something has gone wrong the JVM has stopped */ +lockf(fd,F_LOCK,0); +i = read(fd,buff,sizeof(buff)); +lockf(fd,F_ULOCK,0); +close(fd); +if (i0) { +buff[i] = '\0'; +i = atoi(buff); +log_debug(get_pidf: pid %d, i); +if (kill(i, 0)==0) +return(i); +} +return(-1); +} + +/* + * Check temporatory file created by controller + * /tmp/pid.jsvc_up + */ +static int check_tmp_file(arg_data *args) { +int pid; +char buff[80]; +int fd; +pid = get_pidf(args); +if (pid0) +return(-1); +sprintf(buff,/tmp/%d.jsvc_up, pid); +log_debug(check_tmp_file: %s, buff); +fd = open(buff, O_RDONLY); +if (fd0) +return(-1); +close(fd); +return(0); +} +static void create_tmp_file(arg_data *args) { +char buff[80]; +int fd; +sprintf(buff,/tmp/%d.jsvc_up, getpid()); +log_debug(create_tmp_file: %s, buff); +fd = open(buff, O_RDWR|O_CREAT,S_IRUSR|S_IWUSR); +if (fd0) +return; +close(fd); +} +static void remove_tmp_file(arg_data *args) { +char buff[80]; +sprintf(buff,/tmp/%d.jsvc_up, getpid()); +log_debug(remove_tmp_file: %s, buff); +unlink(buff); +} + +/* + * wait until jsvc create the I am ready file + * pid is the controller and args-pidf the JVM itself. + */ +static int wait_child(arg_data *args, int pid) { +int count=10; +bool havejvm=false; +int fd; +char buff[80]; +int i; +log_debug(wait_child %d, pid); +while (count0) { +/* check if the controler is still running */ +if (kill(pid, 0)!=0
DO NOT REPLY [Bug 34199] - [commons-daemon]: jsvc should return non-0 code if class not found
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34199. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34199 [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID | --- Additional Comments From [EMAIL PROTECTED] 2005-04-21 09:42 --- Thank you for showing me the option -nodetach. Unfortunately I cannot use this in a normal startup script because as you write, jsvc is then not started as a deamon. Therefore I have to re-open this bug. What would be required, and that is what I perceive the same as what Apache httpd provides (I may be wrong), is this: Under RedHat Linux, if Apache httpd has an error on startup, then it returns with a return code != 0. If it doesn't have an error, then it returns with a return code = 0. And this all happens while the httpd blocks until the startup is completed and at the same time httpd is started as a daemon. I don't know whether this is possible with jsvc. jsvc returns correct codes, for example, with an invalid command line parameter. But it does not return correct codes if the Java program crashes on initialisation. I would think that jsvc should return errors for anything that goes wrong until the end of the initialisation. I understand that the purpose of jsvc is to start a java program and when it is started, to call its init() method. So there are two opportunities for failure, and in both cases, error codes should be returned. As far as I can guess, jsvc returns too early before the init() method is completed, which complicates the matter (separate bug 34140). -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34140] - [daemon] jsvc does not block on Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34140. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34140 [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|WORKSFORME | --- Additional Comments From [EMAIL PROTECTED] 2005-04-21 10:02 --- Thanks for your comment. On my ageing test server, Tomcat under jsvc takes more than three minutes to start up. If jsvc did the equivalent of what httpd does, and when I execute the startup script on the command line, then jsvc would return after more than three minutes. But it returns immediately and I don't have any feedback about startup. That is clearly not what I want. My workaround in the startup script is this: I exeecute jsvc, check and exit if there are immediate errors such as command line errors. Then I enter a polling loop. This loop sleeps for a second per iteration and reads the redirected jsvc output from a file. I use the jsvc -debug option to get some meaningful output. If the string jsvc.exec debug: Waiting for a signal to be delivered is found on the last line of the file, then the loop is exited and a 0 return code is returned. I need a timeout in case the string is never found; in that case I return a non 0 return code. I am still hoping that there is a more direct and easier alternative to this method within jsvc that has the same behavior. If this is not possible, then I would think that jsvc would have to use the same polling logic as I do in my script so that users of jsvc don't have to code this. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33154] - [daemon] jsvc assumes posix capabilities loaded
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=33154. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33154 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-04-21 11:04 --- I have added a note in the faq. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r164072 - /jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
Author: jfclere Date: Thu Apr 21 08:13:50 2005 New Revision: 164072 URL: http://svn.apache.org/viewcvs?rev=164072view=rev Log: Add supplementary groups (Fix PR 34493). Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c 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=164072r1=164071r2=164072view=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 Thu Apr 21 08:13:50 2005 @@ -24,6 +24,7 @@ #include fcntl.h #include stdio.h #include pwd.h +#include grp.h #ifdef OS_LINUX #include sys/prctl.h #include sys/syscall.h @@ -86,6 +87,10 @@ if (user!=NULL) { if (setgid(gid)!=0) { log_error(Cannot set group id for user '%s',user); +return(-1); +} +if (initgroups(user, gid)!=0) { +log_error(Cannot set supplement group list for user '%s',user); return(-1); } if (setuid(uid)!=0) { - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34493] - jsvc's spec ?(jsvc does not make directory (supplement group) )
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34493. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34493 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34493] - [daemon] jsvc's spec ?(jsvc does not make directory (supplement group) )
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34493. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34493 [EMAIL PROTECTED] changed: What|Removed |Added Summary|jsvc's spec ?(jsvc does not |[daemon] jsvc's spec ?(jsvc |make directory (supplement |does not make directory |group) )|(supplement group) ) -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33581] - [daemon] Making jsvc multiple instances enabled
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=33581. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33581 [EMAIL PROTECTED] changed: What|Removed |Added Severity|major |enhancement --- Additional Comments From [EMAIL PROTECTED] 2005-04-20 09:07 --- The point 8) is _very_ bad jsvc should remove the pid file when he stops. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34199] - [commons-daemon]: jsvc should return non-0 code if class not found
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34199. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34199 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID --- Additional Comments From [EMAIL PROTECTED] 2005-04-20 08:56 --- you have to use the option -nodetach to get the error code, of jsvc is not started as a deamon in this case. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34140] - [daemon] jsvc does not block on Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34140. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34140 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||WORKSFORME --- Additional Comments From [EMAIL PROTECTED] 2005-04-20 09:30 --- jsvc uses the same logic as httpd, so it behaves the same way. Tomcat is slower in starting mod_jk then Apache starting http so the browser could could get some error page before getting the Tomcat page, that is normal. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31613] - [daemon][PATCH] Update Mac support in jsvc
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31613. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31613 [EMAIL PROTECTED] changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||FIXED -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33154] - [daemon] jsvc assumes posix capabilities loaded
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=33154. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33154 --- Additional Comments From [EMAIL PROTECTED] 2005-04-19 15:12 --- FYI, The option is SECURITY_CAPABILITIES. You can find it in xconfig et al under security options as default linux capabilities. If so configured, it results in a module named capability -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r161917 - jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
Author: jfclere Date: Tue Apr 19 09:49:08 2005 New Revision: 161917 URL: http://svn.apache.org/viewcvs?view=revrev=161917 Log: Fix 33580: note the new exit code 122 to prevent unlink of the pidfile. Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c 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?view=diffr1=161916r2=161917 == --- 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 Apr 19 09:49:08 2005 @@ -19,7 +19,10 @@ #include signal.h #include unistd.h #include sys/types.h +#include sys/stat.h #include sys/wait.h +#include fcntl.h +#include stdio.h #include pwd.h #ifdef OS_LINUX #include sys/prctl.h @@ -240,20 +243,65 @@ } /* + * Check pid and if still running + */ + +static int check_pid(arg_data *args) { +int fd; +FILE *pidf; +char buff[80]; +pid_t pidn=getpid(); +int i,pid; + +fd = open(args-pidf,O_RDWR|O_CREAT,S_IRUSR|S_IWUSR); +if (fd0) { +log_error(Cannot open PID file %s, PID is %d,args-pidf,pidn); +return(-1); +} else { +lockf(fd,F_LOCK,0); +i = read(fd,buff,sizeof(buff)); +if (i0) { +buff[i] = '\0'; +pid = atoi(buff); +if (kill(pid, 0)==0) { +log_error(Still running according to PID file %s, PID is %d,args-pidf,pidn); +lockf(fd,F_ULOCK,0); +close(fd); +return(122); +} +} + +/* skip writing the pid file if version or check */ +if (args-vers!=true args-chck!=true) { +lseek(fd, SEEK_SET, 0); +pidf = fdopen(fd,r+); +fprintf(pidf,%d\n,(int)getpid()); +fflush(pidf); +lockf(fd,F_ULOCK,0); +fclose(pidf); +close(fd); +} else { +lockf(fd,F_ULOCK,0); +close(fd); +} +} +return(0); +} + +/* * son process logic. */ static int child(arg_data *args, home_data *data, uid_t uid, gid_t gid) { -FILE *pidf=fopen(args-pidf,w); -pid_t pidn=getpid(); int ret=0; -/* Write the our pid in the pid file */ -if (pidf!=NULL) { -fprintf(pidf,%d\n,(int)pidn); -fclose(pidf); -} else { -log_error(Cannot open PID file %s, PID is %d,args-pidf,pidn); +/* check the pid file */ +ret = check_pid(args); +if (args-vers!=true args-chck!=true) { +if (ret==122) +return(ret); +if (ret0) +return(ret); } /* create a new process group to prevent kill 0 killing the monitor process */ @@ -475,7 +523,8 @@ status=WEXITSTATUS(status); /* Delete the pid file */ -unlink(args-pidf); +if (args-vers!=true args-chck!=true status!=122) +unlink(args-pidf); /* If the child got out with 123 he wants to be restarted */ if (status==123) { - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33581] - [daemon] Making jsvc multiple instances enabled
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=33581. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33581 Bug 33581 depends on bug 33580, which changed state. Bug 33580 Summary: [daemon] runs as multiple instances, does not use PID file logic http://issues.apache.org/bugzilla/show_bug.cgi?id=33580 What|Old Value |New Value Status|NEW |RESOLVED Resolution||FIXED -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34494] - jsvc's spec ?(jsvc does not make directory (supplement group) )
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34494. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34494 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE --- Additional Comments From [EMAIL PROTECTED] 2005-04-18 10:11 --- *** This bug has been marked as a duplicate of 34493 *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34493] - jsvc's spec ?(jsvc does not make directory (supplement group) )
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34493. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34493 --- Additional Comments From [EMAIL PROTECTED] 2005-04-18 10:11 --- *** Bug 34494 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34494] - [daemon] jsvc's spec ?(jsvc does not make directory (supplement group) )
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34494. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34494 [EMAIL PROTECTED] changed: What|Removed |Added Summary|jsvc's spec ?(jsvc does not |[daemon] jsvc's spec ?(jsvc |make directory (supplement |does not make directory |group) )|(supplement group) ) -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34472] - [daemon] jsvc - can't run tomcat on 64-bit solaris
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34472. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34472 [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|CLOSED -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34472] - [daemon] jsvc - can't run tomcat on 64-bit solaris
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34472. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34472 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-04-18 04:18 --- patch applied. Thanks much! -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r161711 - in jakarta/commons/proper/daemon/trunk/src/native/unix/native: Makefile.in arguments.c arguments.h jsvc-unix.c
Author: billbarker Date: Sun Apr 17 19:32:38 2005 New Revision: 161711 URL: http://svn.apache.org/viewcvs?view=revrev=161711 Log: Allow the process name to be configurable on Linux. Fix for Bug #33981 Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/Makefile.in jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.c jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.h jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/Makefile.in URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/native/Makefile.in?view=diffr1=161710r2=161711 == --- jakarta/commons/proper/daemon/trunk/src/native/unix/native/Makefile.in (original) +++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/Makefile.in Sun Apr 17 19:32:38 2005 @@ -14,7 +14,7 @@ # limitations under the License. # # @author Pier Fumagalli mailto:[EMAIL PROTECTED] -# @version $Id: Makefile.in,v 1.2 2004/02/09 15:55:21 jfclere Exp $ +# @version $Id$ include ../Makedefs Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.c URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.c?view=diffr1=161710r2=161711 == --- jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.c (original) +++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.c Sun Apr 17 19:32:38 2005 @@ -54,7 +54,7 @@ args-outfile=/dev/null; /* Swallow by default */ args-errfile=/dev/null; /* Swallow by default */ args-args=(char **)malloc(argc*sizeof(char *)); - +args-procname = jsvc.exec; /* Set up the command name */ cmnd=strrchr(argv[0],'/'); if (cmnd==NULL) cmnd=argv[0]; @@ -176,6 +176,12 @@ log_error(Invalid option %s,argv[x]); return(NULL); +} else if (strcmp(argv[x],-procname) == 0) { +args-procname = optional(argc, argv, x++); +if(args-procname == NULL) { + log_error(Invalid process name specified); + return (NULL); +} } else { args-clas=strdup(argv[x]); break; Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.h URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.h?view=diffr1=161710r2=161711 == --- jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.h (original) +++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/arguments.h Sun Apr 17 19:32:38 2005 @@ -61,6 +61,8 @@ char *outfile; /** Destination for stderr */ char *errfile; +/** Program name for Linux **/ +char *procname; } arg_data; /** 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?view=diffr1=161710r2=161711 == --- 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 Sun Apr 17 19:32:38 2005 @@ -403,7 +403,7 @@ /* On some UNIX operating systems, we need to REPLACE this current process image with another one (thru execve) to allow the correct loading of VMs (notably this is for Linux). Set, replace, and go. */ -if (strcmp(argv[0],jsvc.exec)!=0) { +if (strcmp(argv[0],args-procname)!=0) { char *oldpath=getenv(LD_LIBRARY_PATH); char *libf=java_library(args,data); char *old=argv[0]; @@ -428,7 +428,7 @@ log_debug(Invoking w/ LD_LIBRARY_PATH=%s,getenv(LD_LIBRARY_PATH)); -argv[0]=jsvc.exec; +argv[0]=args-procname; execve(old,argv,environ); log_error(Cannot execute JSVC executor process); return(1); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34493] New: - jsvc's spec ?(jsvc does not make directory (supplement group) )
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34493. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34493 Summary: jsvc's spec ?(jsvc does not make directory (supplement group) ) Product: Commons Version: unspecified Platform: Sun OS/Version: Solaris Status: NEW Severity: normal Priority: P3 Component: Daemon AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] running tomcat under enviroment; OS:SunOS 5.7 Java:java 1.4.2_07 Tomcat:4.1.31 Jsvc:1.0 (start up user abekiti) user:abekiti group:abekiti(first), nobody(suppliment) If java program(servlet ) will make directory /target/test1/test2, java program does not make /target/test1/test2 directory. cf. java.io.File mkdir or mkdirs /target/test1 (this direstory abekiti:nobody 775 ) I try to make this direcotry by shell. % su - abekiti %mkdir -p /target/test1/test2 result is ok. I read daemon-1.0/src/native/unix/native/jsvc-unix.c jsvc does not set supplement group(by system call setgroups or initgroups) Is this jsvc's spec? security reason? I don't know this reason. Because I don't make unix daemon program. I need to tomcat make supplement group directory. I collected jsvc-unix.c. /* user and group */ static int set_user_group(char *user, int uid, int gid) { if (user!=NULL) { if (setgid(gid)!=0) { log_error(Cannot set group id for user '%s',user); return(-1); } if (initgroups(user, gid)!=0) { log_error(Cannot set supplement group list for user '%s',user); return(-1); } if (setuid(uid)!=0) { log_error(Cannot set user id for user '%s',user); return(-1); } log_debug(user changed to '%s',user); } return(0); } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34494] New: - jsvc's spec ?(jsvc does not make directory (supplement group) )
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34494. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34494 Summary: jsvc's spec ?(jsvc does not make directory (supplement group) ) Product: Commons Version: 1.0 Final Platform: Sun OS/Version: Solaris Status: NEW Severity: normal Priority: P3 Component: Daemon AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] running tomcat under enviroment; OS:SunOS 5.7 Java:java 1.4.2_07 Tomcat:4.1.31 Jsvc:1.0 (start up user abekiti) user:abekiti group:abekiti(first), nobody(suppliment) If java program(servlet ) will make directory /target/test1/test2, java program does not make /target/test1/test2 directory. cf. java.io.File mkdir or mkdirs /target/test1 (this direstory abekiti:nobody 775 ) I try to make this direcotry by shell. % su - abekiti %mkdir -p /target/test1/test2 result is ok. I read daemon-1.0/src/native/unix/native/jsvc-unix.c jsvc does not set supplement group(by system call setgroups or initgroups) Is this jsvc's spec? security reason? I don't know this reason. Because I don't make unix daemon program. I need to tomcat make supplement group directory. I collected jsvc-unix.c. /* user and group */ static int set_user_group(char *user, int uid, int gid) { if (user!=NULL) { if (setgid(gid)!=0) { log_error(Cannot set group id for user '%s',user); return(-1); } if (initgroups(user, gid)!=0) { log_error(Cannot set supplement group list for user '%s',user); return(-1); } if (setuid(uid)!=0) { log_error(Cannot set user id for user '%s',user); return(-1); } log_debug(user changed to '%s',user); } return(0); } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34472] New: - jsvc - can't run tomcat on 64-bit solaris
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34472. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34472 Summary: jsvc - can't run tomcat on 64-bit solaris Product: Commons Version: unspecified Platform: Sun OS/Version: Solaris Status: NEW Severity: normal Priority: P2 Component: Daemon AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] I can't run tomcat using the sparcv9 64-bit jre. However, if apsupport.m4 is changed on line 27 from sparc to sparc*, then I can run CFLAGS=-xtarget=generic64 LDFLAGS=-xtarget=generic64 ./configure --build=sparcv9--solaris and then I can build a 64-bit version of jsvc. (Note: this requires location.c from svn revision 140763 or later to get the correct jvm.cfg file). Then I can run tomcat using: jsvc -jvm server ... -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34472] - jsvc - can't run tomcat on 64-bit solaris
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34472. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34472 --- Additional Comments From [EMAIL PROTECTED] 2005-04-15 14:46 --- Created an attachment (id=14732) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=14732action=view) Patch to apsupport.m4 -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34472] - [daemon] jsvc - can't run tomcat on 64-bit solaris
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34472. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34472 [EMAIL PROTECTED] changed: What|Removed |Added Summary|jsvc - can't run tomcat on |[daemon] jsvc - can't run |64-bit solaris |tomcat on 64-bit solaris -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jsvc on amd64
Hi, Recently I ran jsvc on an AMD64 machine and it didn't work. I ran it with tomcat 5.0.28, apache 2.0.52 and Sun jdk 1_5_0_02. Basically, jsvc is not supported on AMD64 with JDK 1.5. There is already an open bug on this so I am not opening another one. I want to share with the open source community an specifically the jsvc developers what I did and found out. Unfortunately the changes I did are very specific so I cannot contribute them and I didn't have the time to do them generally or properly. The changes I did were in three files: 1) configure - in this file I added the following line: x86_64) CFLAGS=$CFLAGS -DCPU=\\\amd64\\\ ;; Because there is no support for 64 bit on this machine. 2) location.c - in this file I added the path to the libjvm.so which is different for JDK 1.5: $JAVA_HOME/jre/lib/ CPU /server/libjvm.so, /* Sun JDK 1.5 on amd64 */ This line should be under: char *location_jvm_default[] = { 3) jsvc-unix.c - I put in comment the following function: set_caps Since I got errors: jsvc.exec error: syscall failed in set_caps jsvc.exec error: Service exit with a return value of 4 For some reason, there were no permissions to call this function. I didn't get too much into it since I didn't have time and I'm currently running tomcat under root so I don't really need this function. Thanks, Gil
DO NOT REPLY [Bug 34199] New: - [commons-daemon]: jsvc should return non-0 code if class not found
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34199. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34199 Summary: [commons-daemon]: jsvc should return non-0 code if class not found Product: Commons Version: 1.0 Final Platform: PC OS/Version: Linux Status: NEW Severity: major Priority: P1 Component: Daemon AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] Configuration: Red Hat Linux 9 j2sdk-1_4_2_07 jsvc 1.0 Expected behavior: jsvc should return a non 0 return code if it encounters an error itself (not the java class). Actual behavior: If the java class it wants to execute cannot be found then jsvc returns immediately with a return code of 0. jsvc seems to be designed to return error codes as can be seen from the error message: jsvc.exec error: An error was detected checking the NoSuchClass daemon jsvc.exec error: Service exit with a return value of 2 -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34140] - [daemon] jsvc does not block on Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34140. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34140 [EMAIL PROTECTED] changed: What|Removed |Added Summary|[commons-daemon]: jsvc does |[daemon] jsvc does not block |not block on Linux |on Linux -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34140] New: - [commons-daemon]: jsvc does not block on Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34140. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34140 Summary: [commons-daemon]: jsvc does not block on Linux Product: Commons Version: 1.0 Final Platform: PC OS/Version: Linux Status: NEW Severity: critical Priority: P1 Component: Daemon AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] Configuration: Apache/2.0.40 (Red Hat Linux) mod_jk 1.2.8 Tomcat 5.5.7 Red Hat Linux 9 j2sdk-1_4_2_07 Background: In a startup script that is executed at boot time and for server restarts, it is expected that multiple services are started up sequentially, in a single thread, and any subsequend service is started only after the the previous one in the sequence has been initialised fully. The progress status of the startup script is clearly visible at the console because each segment of the startup script prints the beginning and the end of each service initialisation and its success or failure response. Expected behavior: jsvc should return control to the command prompt or script with the appropriate return code only after the Java program it executes has finished its initialisation. Actual behavior: jsvc returns immediately. The expected behavior is much more critical for re-start than at startup. A re-start is required when adding or deleting virtual hosts. As an example, an Apache-httpd mod_jserv Tomcat combination requires the following operational sequence: 1) Apache shutdown (this blocks ok) 2) jsvc Tomcat shutdown (error has impact here) 3) jsvc Tomcat startup (error has impact here) 4) Apache startup (this blocks ok) 2) and 3) true elapse times vary much depending on server load and especially on the number of virtual hosts. It is not acceptable to work around this with time delays because their required duration cannot be determined. I am using the following script (adapted from the Tomcat distribution): JAVA_HOME=/usr/java/j2re1.4.2 CATALINA_HOME=/usr/local/tomcat5 DAEMON_HOME=/usr/local/tomcat5/bin TOMCAT_USER=tomcat TMP_DIR=/var/tmp CATALINA_OPTS= CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar TOMCAT_PID_FILE=/var/run/tomcat.pid case $1 in start) # # Start Tomcat # $DAEMON_HOME/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ -pidfile $TOMCAT_PID_FILE \ -debug \ org.apache.catalina.startup.Bootstrap # # To get a verbose JVM #-verbose \ # To get a debug of jsvc. #-debug \ ;; stop) # # Stop Tomcat # #cat $TOMCAT_PID_FILE PID=$(cat ${TOMCAT_PID_FILE}) kill $PID ;; restart) $0 stop sleep 2 $0 start ;; *) echo Usage tomcat.sh start/stop/restart exit 1;; esac -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34140] - [commons-daemon]: jsvc does not block on Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34140. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34140 --- Additional Comments From [EMAIL PROTECTED] 2005-03-22 23:58 --- It is probably not clear enough from my comments that the blocking behavior should equally apply to shutdown so that subsequent executions can rely on the service to be shut down fully. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 shutdown issue with jsvc commons daemon
Thanks Wolfgang! Still problems. I downloaded from http://cvs.apache.org/builds/jakarta-commons/nightly/commons-daemon/ the latest file: commons-daemon-20050316.zip autoconf worked fine. ./configure worked fine. make failed with many errors. How to fix this? Is it worth it? When is the next version coming out? The errors are below. I cross-posted to the commons-dev list because I used a nightly build. Many thanks, Bernard # ./configure *** Current host *** checking build system type... i586-pc-linux-gnu checking host system type... i586-pc-linux-gnu checking cached host system type... ok *** C-Language compilation tools *** checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for ranlib... ranlib *** Java compilation tools *** checking for javac... NONE checking for javac... /usr/java/j2sdk1.4.2_07/bin/javac checking wether the Java compiler (/usr/java/j2sdk1.4.2_07/bin/javac) works... yes checking for jar... NONE checking for jar... /usr/java/j2sdk1.4.2_07/bin/jar *** Host support *** checking C flags dependant on host system type... ok gcc flags added *** Writing output files *** configure: creating ./config.status config.status: creating Makefile config.status: creating Makedefs config.status: creating native/Makefile *** All done *** Now you can issue make [EMAIL PROTECTED] jsvc-src]# make make -C native all make[1]: Entering directory `/tmp/jsvc/commons-daemon/bin/jsvc-src/native' gcc -g -O2 -DCPU=\i386\ -DOS_LINUX -DDSO_DLFCN -I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux -Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o gcc -g -O2 -DCPU=\i386\ -DOS_LINUX -DDSO_DLFCN -I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux -Wall -Wstrict-prototypes -c arguments.c -o arguments.o arguments.c: In function `arguments': arguments.c:231: warning: unused variable `temp' gcc -g -O2 -DCPU=\i386\ -DOS_LINUX -DDSO_DLFCN -I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux -Wall -Wstrict-prototypes -c debug.c -o debug.o gcc -g -O2 -DCPU=\i386\ -DOS_LINUX -DDSO_DLFCN -I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux -Wall -Wstrict-prototypes -c dso-dlfcn.c -o dso-dlfcn.o dso-dlfcn.c:51: warning: function declaration isn't a prototype gcc -g -O2 -DCPU=\i386\ -DOS_LINUX -DDSO_DLFCN -I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux -Wall -Wstrict-prototypes -c dso-dyld.c -o dso-dyld.o gcc -g -O2 -DCPU=\i386\ -DOS_LINUX -DDSO_DLFCN -I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux -Wall -Wstrict-prototypes -c help.c -o help.o gcc -g -O2 -DCPU=\i386\ -DOS_LINUX -DDSO_DLFCN -I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux -Wall -Wstrict-prototypes -c home.c -o home.o gcc -g -O2 -DCPU=\i386\ -DOS_LINUX -DDSO_DLFCN -I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux -Wall -Wstrict-prototypes -c java.c -o java.o java.c:22:17: jni.h: No such file or directory java.c:35: parse error before '*' token java.c:35: warning: type defaults to `int' in declaration of `jvm' java.c:35: warning: data definition has no type or storage class java.c:36: parse error before '*' token java.c:36: warning: type defaults to `int' in declaration of `env' java.c:36: warning: data definition has no type or storage class java.c:37: parse error before cls java.c:37: warning: type defaults to `int' in declaration of `cls' java.c:37: warning: initialization makes integer from pointer without a cast java.c:37: warning: data definition has no type or storage class java.c:42: parse error before '*' token java.c:42: warning: function declaration isn't a prototype java.c: In function `shutdown': java.c:43: `reload' undeclared (first use in this function) java.c:43: (Each undeclared identifier is reported only once java.c:43: for each function it appears in.) java.c: At top level: java.c:49: warning: function declaration isn't a prototype java.c: In function `java_init': java.c:91: warning: implicit declaration of function `jint' java.c:91: `symb' undeclared (first use in this function) java.c:91: `JavaVM' undeclared (first use in this function) java.c:91: parse error before ',' token java.c:92: `JNINativeMethod' undeclared (first use in this function) java.c:93: `JavaVMOption' undeclared (first use in this function) java.c:93: `opt' undeclared (first use in this function) java.c:95: `JavaVMInitArgs' undeclared (first use in this function) java.c:95: parse error before arg java.c:97: parse error before ret java.c:120: warning: implicit declaration of function `dso_error' java.c:166: `arg' undeclared (first use in this function) java.c:166: `JNI_VERSION_1_2' undeclared (first use
Re: Tomcat 5 shutdown issue with jsvc commons daemon
Thanks Wolfgang! Sorry about my previous email - I found my mistake. Regards, Bernard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsvc problem
Hello! I have some problem with JSVC using commons-daemon-1.0. It seems to me it can not find DaemonLoader class. But commons-daemon.jar is in classpath jsvc.exec debug: Java VM created successfully jsvc.exec error: Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader jsvc.exec error: Service exit with a return value of 1 Command line is #jsvc -debug -home $JAVA_HOME -cp commons-daemon.jar MAIN_CLASS Can anybody help me? Thanks. Vasya. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsvc problem
On Fri, 2005-03-04 at 15:37 +0200, Vasiliy Keretsman wrote: Hello! I have some problem with JSVC using commons-daemon-1.0. It seems to me it can not find DaemonLoader class. But commons-daemon.jar is in classpath jsvc.exec debug: Java VM created successfully jsvc.exec error: Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader jsvc.exec error: Service exit with a return value of 1 Command line is #jsvc -debug -home $JAVA_HOME -cp commons-daemon.jar MAIN_CLASS Can anybody help me? Perhaps $JAVA_HOME has a space in it? You could try: jsvc -debug -home $JAVA_HOME -cp commons-daemon.jar MAIN_CLASS Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33581] New: - Making jsvc multiple instances enabled
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=33581. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33581 Summary: Making jsvc multiple instances enabled Product: Commons Version: unspecified Platform: All URL: http://miti.sourceforge.net OS/Version: All Status: NEW Severity: major Priority: P2 Component: Daemon AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] This bug is closely related to 33580. The Tomcat5.sh script bundled with jsvc is not capable of handling multiple instances. According to http://miti.sourceforge.net this script should be adapted in the following ways: 1) Introduce a variable $INSTANCE_NAME which is unique 2) Introduce a variable $CATALINA_BASE_DIRS which represents a directory where all the instances will be located (e.g. /usr/local/tomcat/instances) 3) Set $CATALINA_BASE in the script (or require the shell variable to be non-zero) to $CATALINA_BASE/$INSTANCE_NAME 4) Introduce a parameter TMP_DIR=$CATALINA_BASE/$INSTANCE_NAME/temp 5) Adapt the parameter in the jsvc call: -Djava.io.tmpdir=$TMP_DIR \ 6) Introduce a parameter PIDFILE=/var/run/jsvc-$INSTANCE_NAME.pid 7) Add a line with -pidfile $PIDFILE \ to the parameters for the jsvc call in the start section 8) Change the stop case to stop) # # Stop Tomcat # PID=`cat $PIDFILE` if [ -n $PID ] then kill $PID rm $PIDFILE fi ;; If the installation is for a single instance, $CATALINA_BASE will be empty and therefore can be set to $CATALINA_HOME. Point 8) might even be better addressed by the jsvc executable. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33581] - [daemon] Making jsvc multiple instances enabled
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=33581. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33581 [EMAIL PROTECTED] changed: What|Removed |Added Summary|Making jsvc multiple|[daemon] Making jsvc |instances enabled |multiple instances enabled -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33581] - [daemon] Making jsvc multiple instances enabled
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=33581. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33581 --- Additional Comments From [EMAIL PROTECTED] 2005-02-15 10:09 --- Please see http://www.junlu.com/msg/139408.html for an example wrapper script which can set $CATALINA_BASE for an instance. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33581] - [daemon] Making jsvc multiple instances enabled
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=33581. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33581 [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] BugsThisDependsOn||33580 --- Additional Comments From [EMAIL PROTECTED] 2005-02-15 11:18 --- Re: Point 8) might even be better addressed by the jsvc executable. I agree. That would help to get jsvc to handle a single instance reliably. That would be nice: Single instance jsvc refuses to start a duplicate instance, and with this bug solved, multi instance jsvc refuses to run duplicates per each of true multiple instances. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsvc on Linux: multiple instances possible, why -pidfile?
Hi, I created multiple jsvc instances that did not die. That happens with the adapted Tomcat5.sh supplied with the Tomcat 5.5 distribution. That's a problem. I would appreciate some help in understanding the logic of the pid file. This is my view of things; please correct me and help me if I am wrong: If, as it is presently the case, jsvc creates a pid file, then it must not be possible for jsvc to launch a second copy of a service. jsvc should however be able to briefly run only itself as multiple instances - it must be allowed to do so in order to check the pid file. It would not be reliable to pass this responsibility to the OS. So any jsvc copy on top of the first should exit with an error condition, and it should not attempt to start the jvm with the server. If jsvc is NOT designed to block multiple service instances, then it must not write the PID file. In that case it would be the responsibility of the script to write the pid file and block multiple service instances. What to do? Many thanks, Bernard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33154] New: - jsvc assumes posix capabilities loaded
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=33154. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33154 Summary: jsvc assumes posix capabilities loaded Product: Commons Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Daemon AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] later versions of linux (e.g. 2.6.x) may have capability management configured as a module rather than compiled in. A LKML discussion is ongoing as to if this is a good idea or not, but the upshot is that jsvc will fail on capset if the kernel doesn't have the module loaded. I'd suggest a note in the release notes and/or linux faq section discussing the issue. I'd be happy to propose a doc patch -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33154] - [daemon] jsvc assumes posix capabilities loaded
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=33154. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33154 [EMAIL PROTECTED] changed: What|Removed |Added Summary|jsvc assumes posix |[daemon] jsvc assumes posix |capabilities loaded |capabilities loaded -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31613] - [daemon][PATCH] Update Mac support in jsvc
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31613. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31613 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-01-04 17:43 --- The logic to get dso_link() working with jvm 1.4.x in now in cVS. The detection of JAVA_HOME will not be included because it is not supported in other platforms. JNI_VERSION_1_4 is not needed. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31613] - [daemon][PATCH] Update Mac support in jsvc
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31613. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31613 [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED | --- Additional Comments From [EMAIL PROTECTED] 2005-01-04 18:46 --- jclere: Thanks for getting these patches in. But I believe there are still a couple of issues: (1) You say JNI_VERSION_1_4 is not needed, but in my testing I found that if JNI_VERSION_1_2 is requested, Apple will actually load JVM 1.3.1 (for compatibility) rather than the latest JVM available. So unless I'm missing something, it is indeed necessary to set JNI_VERSION_1_4 unless one wants the invoked java code to live under JVM 1.3.1, which is not desirable. Have I missed something? (2) You decided not to put in the defaulting of JAVA_HOME, which is okay. But the change to the resolution of $JAVA_HOME/../Headers really is needed. The code in configure.in as it sits does this: cd $JAVA_HOME cd .. cd Headers This fails to correctly cd to the Headers directory on Mac OS X, since the typical setting for JAVA_HOME (/Library/Java/Home) is a symlink. The following does correctly resolve to the proper location: cd $JAVA_HOME/../Headers While it seems, intuitively, that those statements should be equivilant, they are not, at least in the presense of symlinks. Besides, the proper form is shorter anyway! Can you apply those changes? Thanks again for getting these patches in, and let me know if you've got any questions. -jdb -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31017] - [daemon] jsvc-src AUToCONF Bug
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31017. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31017 [EMAIL PROTECTED] changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-01-03 12:05 --- Fixed in CVS. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-commons/daemon/src/native/unix/native jsvc-unix.c
jfclere 2005/01/03 03:51:23 Modified:daemon/src/native/unix/native jsvc-unix.c Log: Delete the pid file when the son process exists correctly. (PR: 31614). Revision ChangesPath 1.11 +4 -1 jakarta-commons/daemon/src/native/unix/native/jsvc-unix.c Index: jsvc-unix.c === RCS file: /home/cvs/jakarta-commons/daemon/src/native/unix/native/jsvc-unix.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- jsvc-unix.c 18 Mar 2004 03:59:41 - 1.10 +++ jsvc-unix.c 3 Jan 2005 11:51:23 - 1.11 @@ -474,6 +474,9 @@ if (WIFEXITED(status)) { status=WEXITSTATUS(status); +/* Delete the pid file */ +unlink(args-pidf); + /* If the child got out with 123 he wants to be restarted */ if (status==123) { log_debug(Reloading service); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31017] - [daemon] jsvc-src AUToCONF Bug
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31017. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31017 [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] --- Additional Comments From [EMAIL PROTECTED] 2004-12-21 22:08 --- (In reply to comment #3) please put the following line into configure.in (contained in the package jsvc.tar.gz) as first line after any comments: AC_PREREQ(2.53) since there are many installations around having installed both autoconf2.13 and autoconf =2.53, using the former as default and accessing autoconf through the ac-wrapper! That fixed it for me on Gentoo. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31613] - [daemon][PATCH] Update Mac support in jsvc
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31613. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31613 --- Additional Comments From [EMAIL PROTECTED] 2004-12-18 01:15 --- Is there any hope of getting this patch integrated? -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31614] - [daemon][PATCH] Make jsvc delete pid file on daemon exit
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31614. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31614 --- Additional Comments From [EMAIL PROTECTED] 2004-12-18 01:16 --- Is there any hope of getting this patch integrated? -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31682] - [daemon] manpage for jsvc
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31682. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31682 [EMAIL PROTECTED] changed: What|Removed |Added Summary|manpage for jsvc|[daemon] manpage for jsvc -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31614] - [daemon][PATCH] Make jsvc delete pid file on daemon exit
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31614. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31614 [EMAIL PROTECTED] changed: What|Removed |Added Summary|[PATCH] Make jsvc delete pid|[daemon][PATCH] Make jsvc |file on daemon exit |delete pid file on daemon ||exit -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31613] - [daemon][PATCH] Update Mac support in jsvc
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31613. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31613 [EMAIL PROTECTED] changed: What|Removed |Added Summary|[PATCH] Update Mac support |[daemon][PATCH] Update Mac |in jsvc |support in jsvc -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31017] - [daemon] jsvc-src AUToCONF Bug
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31017. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31017 [EMAIL PROTECTED] changed: What|Removed |Added Summary|jsvc-src AUToCONF Bug |[daemon] jsvc-src AUToCONF ||Bug -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 27998] - [daemon] jsvc compile failed due to Unsupported CPU architecture
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=27998. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=27998 [EMAIL PROTECTED] changed: What|Removed |Added Summary|jsvc compile failed due to |[daemon] jsvc compile failed |Unsupported CPU architecture|due to Unsupported CPU ||architecture -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31017] - jsvc-src AUToCONF Bug
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31017. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31017 jsvc-src AUToCONF Bug [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID | --- Additional Comments From [EMAIL PROTECTED] 2004-11-11 15:59 --- please put the following line into configure.in (contained in the package jsvc.tar.gz) as first line after any comments: AC_PREREQ(2.53) since there are many installations around having installed both autoconf2.13 and autoconf =2.53, using the former as default and accessing autoconf through the ac-wrapper! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31017] - jsvc-src AUToCONF Bug
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31017. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31017 jsvc-src AUToCONF Bug [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID --- Additional Comments From [EMAIL PROTECTED] 2004-11-05 11:25 --- Your autoconf is too old. See http://jakarta.apache.org/commons/daemon/faq.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Daemon] RE: [jsvc] manpage for jsvc
Tue, 12 Oct 2004 09:03:39 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Thanks for the submission. I see some garbled stuff at the end, so if you could please attach your contribution to a new Bugzilla enhancement item for Commons - Daemon (jsvc is part of Daemon), that'd be great. Thanks, Done. Thanks for your time. -- Arnaud Vandyck http://fosdem.org/ Free and Open Source Developers' European Meeting February 26-27 2005, Bruxelles, Belgium - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Daemon] RE: [jsvc] manpage for jsvc
Hi, Thanks for the submission. I see some garbled stuff at the end, so if you could please attach your contribution to a new Bugzilla enhancement item for Commons - Daemon (jsvc is part of Daemon), that'd be great. Thanks, Yoav Shapira -Original Message- From: Arnaud Vandyck [mailto:[EMAIL PROTECTED] Sent: Sunday, October 10, 2004 7:10 PM To: [EMAIL PROTECTED] Subject: [jsvc] manpage for jsvc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
DO NOT REPLY [Bug 31682] New: - manpage for jsvc
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31682. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31682 manpage for jsvc Summary: manpage for jsvc Product: Commons Version: unspecified Platform: Other URL: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/commons- daemon/debian/jsvc.1.xml?cvsroot=pkg-java OS/Version: Other Status: NEW Severity: Enhancement Priority: Other Component: Daemon AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] the url points to the docbook source of the jsvc manpage I wrote for the Debian package. It is based on --help argument. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31682] - manpage for jsvc
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31682. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31682 manpage for jsvc --- Additional Comments From [EMAIL PROTECTED] 2004-10-12 23:27 --- Created an attachment (id=13053) xml docbook source file for jsvc manpage - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31682] - manpage for jsvc
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31682. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31682 manpage for jsvc --- Additional Comments From [EMAIL PROTECTED] 2004-10-12 23:28 --- Created an attachment (id=13054) generated manpage for jsvc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31613] - [PATCH] Update Mac support in jsvc
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31613. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31613 [PATCH] Update Mac support in jsvc [EMAIL PROTECTED] changed: What|Removed |Added Summary|Patches to update Mac |[PATCH] Update Mac support |support in jsvc |in jsvc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31614] - [PATCH] Make jsvc delete pid file on daemon exit
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31614. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31614 [PATCH] Make jsvc delete pid file on daemon exit [EMAIL PROTECTED] changed: What|Removed |Added Summary|Patch to make jsvc delete |[PATCH] Make jsvc delete pid |pid file on daemon exit |file on daemon exit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jsvc] manpage for jsvc
jsvc.1.xml Description: application/xml - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31613] New: - Patches to update Mac support in jsvc
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31613. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31613 Patches to update Mac support in jsvc Summary: Patches to update Mac support in jsvc Product: Commons Version: 1.0 Final Platform: Macintosh OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Daemon AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The enclosed patch updates Mac OS X support in commons-daemon, which is currently broken in recent system versions. - Update configure.in to: (a) find JAVA_HOME if it's not set (b) correctly find header files for compiler include. - Update native/java.c to: (a) Use appropriate dylib on newer JVM versions. (b) Use JNI_VERSION_1_4 if it's available, so that the JVM is not downgraded to 1.3.1. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31613] - Patches to update Mac support in jsvc
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31613. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31613 Patches to update Mac support in jsvc --- Additional Comments From [EMAIL PROTECTED] 2004-10-09 22:55 --- Created an attachment (id=13004) Patch file patches configure.in and java.c - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31614] New: - Patch to make jsvc delete pid file on daemon exit
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31614. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31614 Patch to make jsvc delete pid file on daemon exit Summary: Patch to make jsvc delete pid file on daemon exit Product: Commons Version: 1.0 Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Daemon AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The attached patch updates jsvc to cause it to delete the pid file on exit of the daemon process. This greatly eases and strengthens checking of whether the daemon process is still alive. Because the daemon has dropped priviledges by the time it wants to exit, it is no longer able, itself, to delete the pid file as it's likely lost priviledges to the pid location. I moved creation/deleting of the pid file to the controller process: the controller creates the pid file when the child is forked, and deletes it when the child terminates. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31614] - Patch to make jsvc delete pid file on daemon exit
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31614. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31614 Patch to make jsvc delete pid file on daemon exit --- Additional Comments From [EMAIL PROTECTED] 2004-10-09 23:00 --- Created an attachment (id=13005) Patch file patches native/jsvc-unix.c - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 23723] - jsvc does not compile due to missing headers
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=23723. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=23723 jsvc does not compile due to missing headers [EMAIL PROTECTED] changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||DUPLICATE --- Additional Comments From [EMAIL PROTECTED] 2004-10-09 23:10 --- This bug will be resolved if the patches in duplicate by 31613 are applied. *** This bug has been marked as a duplicate of 31613 *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31613] - Patches to update Mac support in jsvc
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31613. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31613 Patches to update Mac support in jsvc [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] ||siemens.com --- Additional Comments From [EMAIL PROTECTED] 2004-10-09 23:10 --- *** Bug 23723 has been marked as a duplicate of this bug. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSVC and AIX
Hi All, I'm trying to compile the JSVC daemon program for java on AIX box. I'm getting the following error message when I run configure. $ ./configure --with-java=/usr/java131 *** Current host *** configure: error: cannot run /bin/sh ./support/config.sub $ uname -a AIX Devlog01 2 5 000D987A4C00 $ Please let me know if anyone has compiled JSVC on AIX box, or anyone can help me compile it. Thanks and regards, Himanshu __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSVC and AIX
Himanshu Shekhar wrote: Hi All, I'm trying to compile the JSVC daemon program for java on AIX box. I'm getting the following error message when I run configure. $ ./configure --with-java=/usr/java131 *** Current host *** configure: error: cannot run /bin/sh Create a symlink of your normal shell to /bin/sh. ./support/config.sub $ uname -a AIX Devlog01 2 5 000D987A4C00 $ Please let me know if anyone has compiled JSVC on AIX box, or anyone can help me compile it. Thanks and regards, Himanshu __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31017] - jsvc-src AUToCONF Bug
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31017. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31017 jsvc-src AUToCONF Bug [EMAIL PROTECTED] changed: What|Removed |Added AssignedTo|tomcat- |commons- |[EMAIL PROTECTED] |[EMAIL PROTECTED] Component|Unknown |Daemon Product|Tomcat 5|Commons Summary| jsvc-src AUToCONF Bug |jsvc-src AUToCONF Bug Version|5.5.0 |unspecified --- Additional Comments From [EMAIL PROTECTED] 2004-09-09 13:10 --- Reassigning to commons-daemon, where the buildconf.sh is from. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSVC patch to support Tru64/Alpha systems
This is a patch over JSVC source distribution which was inside Tomcat 5.0.24. It makes JSVC work under Tru64 (at least for Tomcat:). Purhaps it will be useful to incorporate it in future releases. Please CC answers for me, as I am not subscribed to your list. diff -ur jsvc-src/configure.in jsvc-src.new/configure.in --- jsvc-src/configure.in Mon Feb 23 16:43:50 2004 +++ jsvc-src.new/configure.in Tue Jun 8 12:11:21 2004 @@ -107,7 +107,12 @@ cd $_prevdir unset _prevdir else +if test $supported_os = tru64 +then + CFLAGS=$CFLAGS -I$JAVA_HOME/include -I$JAVA_HOME/include/alpha +else CFLAGS=$CFLAGS -I$JAVA_HOME/include -I$JAVA_HOME/include/$supported_os +fi fi dnl - diff -ur jsvc-src/native/location.c jsvc-src.new/native/location.c --- jsvc-src/native/location.c Mon Feb 23 16:43:50 2004 +++ jsvc-src.new/native/location.c Wed Jun 9 10:23:16 2004 @@ -37,6 +37,9 @@ #elif defined(OS_SYSV) /opt/java, /opt/java/jdk13, +#elif defined(OS_TRU64) +/usr/opt/java142, +/usr/opt/java13, #endif NULL, }; @@ -49,6 +52,10 @@ char *location_jvm_cfg[] = { $JAVA_HOME/jre/lib/jvm.cfg, /* JDK */ $JAVA_HOME/lib/jvm.cfg, /* JRE */ +#if defined(OS_TRU64) +$JAVA_HOME/jre/lib/alpha/jvm.cfg, /* JDK */ +$JAVA_HOME/lib/alpha/jvm.cfg, /* JRE */ +#endif NULL, }; @@ -86,6 +93,16 @@ $JAVA_HOME/bin/classic/libjvm.so, $JAVA_HOME/bin/client/libjvm.so, $JAVA_HOME/bin/libjvm.so, +#elif defined(OS_TRU64) +$JAVA_HOME/jre/lib/alpha/classic/libjvm.so, +$JAVA_HOME/jre/lib/alpha/fast64/libjvm.so, +$JAVA_HOME/jre/lib/alpha/fast32/libjvm.so, +$JAVA_HOME/lib/alpha/classic/libjvm.so, +$JAVA_HOME/lib/alpha/fast64/libjvm.so, +$JAVA_HOME/lib/alpha/fast32/libjvm.so, +$JAVA_HOME/lib/classic/libjvm.so, +$JAVA_HOME/lib/fast64/libjvm.so, +$JAVA_HOME/lib/fast32/libjvm.so, #endif NULL, }; @@ -106,6 +123,9 @@ $JAVA_HOME/jre/lib/ CPU /$VM_NAME/green_threads/libjvm.so, $JAVA_HOME/lib/ CPU /$VM_NAME/dce_threads/libjvm.so, $JAVA_HOME/lib/ CPU /$VM_NAME/green_threads/libjvm.so, +#elif defined(OS_TRU64) +$JAVA_HOME/jre/lib/alpha/classic/libjvm.so, +$JAVA_HOME/lib/alpha/classic/libjvm.so, #endif NULL, }; diff -ur jsvc-src/support/apsupport.m4 jsvc-src.new/support/apsupport.m4 --- jsvc-src/support/apsupport.m4 Mon Feb 23 16:43:50 2004 +++ jsvc-src.new/support/apsupport.m4 Wed Jun 9 10:29:30 2004 @@ -79,6 +79,8 @@ CFLAGS=$CFLAGS -DCPU=\\\mips\\\ supported_os=mips ;; + alpha*) +CFLAGS=$CFLAGS -DCPU=\\\alpha\\\ ;; *) AC_MSG_RESULT([failed]) AC_MSG_ERROR([Unsupported CPU architecture $host_cpu]);; @@ -115,6 +117,11 @@ CFLAGS=$CFLAGS -DOS_FREEBSD -DDSO_DLFCN -D_THREAD_SAFE -pthread LDFLAGS=-pthread $LDFLAGS supported_os=freebsd +;; + osf5*) +CFLAGS=$CFLAGS -pthread -DOS_TRU64 -DDSO_DLFCN -D_XOPEN_SOURCE_EXTENDED +supported_os=tru64 +LDFLAGS=$LDFLAGS -pthread ;; *) AC_MSG_RESULT([failed]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 27998] New: - jsvc compile failed due to Unsupported CPU architecture
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=27998. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=27998 jsvc compile failed due to Unsupported CPU architecture Summary: jsvc compile failed due to Unsupported CPU architecture Product: Commons Version: 1.0 Alpha Platform: HP URL: N/A OS/Version: HP-UX Status: NEW Severity: Major Priority: Other Component: Daemon AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I was trying to compile jsvc on a HP-UX 11.00 system $ support/buildconf.sh support/buildconf.sh: configure script generated successfully $ ./configure *** Current host *** checking build system type... hppa1.1-hp-hpux11.00 checking host system type... hppa1.1-hp-hpux11.00 checking cached host system type... ok *** C-Language compilation tools *** checking for gcc... no checking for cc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... no checking whether cc accepts -g... yes checking for cc option to accept ANSI C... none needed checking for ranlib... ranlib *** Java compilation tools *** checking for javac... /opt/java1.4/bin/javac checking wether the Java compiler (/opt/java1.4/bin/javac) works... yes checking for jar... /opt/java1.4/bin/jar *** Host support *** checking C flags dependant on host system type... failed configure: error: Unsupported CPU architecture hppa1.1 Every tried three times with the same results. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 23723] - jsvc does not compile due to missing headers
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23723. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23723 jsvc does not compile due to missing headers [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-commons/daemon/src/native/unix/native Makefile.in Tomcat.sh Tomcat5.sh arguments.c arguments.h debug.c debug.h dso-dlfcn.c dso-dyld.c dso.h help.c help.h home.c home.h java.c java.h jsvc-unix.c jsvc.h location.c location.h replace.c replace.h signals.c
jfclere 2004/02/09 07:55:22 Modified:daemon/src/native/unix/native Makefile.in Tomcat.sh Tomcat5.sh arguments.c arguments.h debug.c debug.h dso-dlfcn.c dso-dyld.c dso.h help.c help.h home.c home.h java.c java.h jsvc-unix.c jsvc.h location.c location.h replace.c replace.h signals.c Log: Arrange the licence text. The first commit was in jakarta-tomcat-service/java the 2001/07/26. So the first date can't be 1999. Revision ChangesPath 1.2 +16 -58jakarta-commons/daemon/src/native/unix/native/Makefile.in http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/Makefile.in.diff?r1=1.1r2=1.2 1.4 +17 -0 jakarta-commons/daemon/src/native/unix/native/Tomcat.sh http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/Tomcat.sh.diff?r1=1.3r2=1.4 1.2 +16 -0 jakarta-commons/daemon/src/native/unix/native/Tomcat5.sh http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/Tomcat5.sh.diff?r1=1.1r2=1.2 1.4 +16 -58jakarta-commons/daemon/src/native/unix/native/arguments.c http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/arguments.c.diff?r1=1.3r2=1.4 1.2 +16 -58jakarta-commons/daemon/src/native/unix/native/arguments.h http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/arguments.h.diff?r1=1.1r2=1.2 1.2 +16 -58jakarta-commons/daemon/src/native/unix/native/debug.c http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/debug.c.diff?r1=1.1r2=1.2 1.3 +16 -58jakarta-commons/daemon/src/native/unix/native/debug.h http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/debug.h.diff?r1=1.2r2=1.3 1.2 +16 -58jakarta-commons/daemon/src/native/unix/native/dso-dlfcn.c http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/dso-dlfcn.c.diff?r1=1.1r2=1.2 1.2 +16 -58jakarta-commons/daemon/src/native/unix/native/dso-dyld.c http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/dso-dyld.c.diff?r1=1.1r2=1.2 1.2 +16 -58jakarta-commons/daemon/src/native/unix/native/dso.h http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/dso.h.diff?r1=1.1r2=1.2 1.4 +15 -57jakarta-commons/daemon/src/native/unix/native/help.c http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/help.c.diff?r1=1.3r2=1.4 1.2 +16 -58jakarta-commons/daemon/src/native/unix/native/help.h http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/help.h.diff?r1=1.1r2=1.2 1.7 +16 -58jakarta-commons/daemon/src/native/unix/native/home.c http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/home.c.diff?r1=1.6r2=1.7 1.2 +16 -58jakarta-commons/daemon/src/native/unix/native/home.h http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/home.h.diff?r1=1.1r2=1.2 1.3 +16 -58jakarta-commons/daemon/src/native/unix/native/java.c http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/java.c.diff?r1=1.2r2=1.3 1.3 +16 -58jakarta-commons/daemon/src/native/unix/native/java.h http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/java.h.diff?r1=1.2r2=1.3 1.9 +16 -58jakarta-commons/daemon/src/native/unix/native/jsvc-unix.c http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/jsvc-unix.c.diff?r1=1.8r2=1.9 1.2 +16 -58jakarta-commons/daemon/src/native/unix/native/jsvc.h http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/jsvc.h.diff?r1=1.1r2=1.2 1.3 +16 -58jakarta-commons/daemon/src/native/unix/native/location.c http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/location.c.diff?r1=1.2r2=1.3 1.2 +16 -58jakarta-commons/daemon/src/native/unix/native/location.h http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/location.h.diff?r1=1.1r2=1.2 1.2 +16 -58jakarta-commons/daemon/src/native/unix/native/replace.c http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/replace.c.diff?r1=1.1r2=1.2 1.2 +16 -58jakarta-commons/daemon/src/native/unix/native/replace.h http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/replace.h.diff?r1=1.1r2=1.2 1.2 +16 -58jakarta-commons/daemon/src/native/unix/native/signals.c http://cvs.apache.org/viewcvs/jakarta-commons/daemon/src/native/unix/native/signals.c.diff?r1
[daemon] jsvc compile errors
I recently downloaded the Daemon source from jakarta, the one labeled 1.0-Alpha with the intention of using it for jsvc. I had a compile error in home.c -- easy enough to fix, just a missing semi-colon. It looks like Bill Barker commited a fix for this on 1/18/2004. Anyway it made me wonder: should I even be using this? Should I be using head? Thanks for the advice., +jeff The information in this email and subsequent attachments may contain confidential information that is intended solely for the attention and use of the named addressee(s). This message or any part thereof must not be disclosed, copied, distributed, or retained by any person without the authorization from the addressee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 26517] - Compilation of jsvc fails, missing ; in home.c
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26517. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26517 Compilation of jsvc fails, missing ; in home.c [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE --- Additional Comments From [EMAIL PROTECTED] 2004-02-02 03:18 --- I don't personally have access to RH 9, so I can't look to see how to remove the warning. If you wanted to research this, and report back, I'd be much obliged :). *** This bug has been marked as a duplicate of 26428 *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 26517] - Compilation of jsvc fails, missing ; in home.c
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26517. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26517 Compilation of jsvc fails, missing ; in home.c --- Additional Comments From [EMAIL PROTECTED] 2004-01-30 20:25 --- Just to elaborate, as I ran into this 'make' error as well, while setting up Tomcat (on Redhat Linux 9). And after adding the semicolon I get the home.o output file successfully. Line 110 is part of the parse() function in home.c static bool parse(home_data *data) { ... if(sp != NULL) *sp = '\0'; /* Semicolon added on line 110 :-) */ } Now the next, perhaps separate bug, is that I get a compile error in the java.c source file when I attempt to finish the make. Here is the error in the output gcc -g -O2 -DCPU=\i386\ -DOS_LINUX -DDSO_DLFCN -I/usr/local/java/j2sdk_nb/j2sdk1.4.2/include -I/usr/local/java/j2sdk_nb/j2sdk1.4.2/include/linux -Wall -Wstrict-prototypes -c java.c -o java.o java.c: In function `java_init': java.c:156: warning: implicit declaration of function `dso_error' Thanks, Francis J. Wildhaber [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]