Creating a plugin for SunOne Web Server

First has anyone built a plugin for the SunOne Web Server? I took the Tomcat plugin to modify it. The SunOne Web Server boots via a shell script which calls some binaries. What I did was create a Java class (with main) to essentially call a Runtime.exec to start the shell script and then perform a process.waitFor().

I even tried placing the script in the background. The problem is it immediately exits from the process with a return code of 0 right after a successful start-up. At this point idea thinks my plug-in has completed its' processing so it too displays Process has terminated with exit code 0.

Any ideas on how to construct an external process to work with a plugin?

Thanks.

0

Please sign in to leave a comment.