Re: jboss
Andy Bradford <[email protected]> Mon, 26 Mar 2007 08:24:51 -0600
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
Thus said "Tim Cook" on Sun, 25 Mar 2007 22:36:32 -0800:
> I am having problems with jboss and stopping the service. I am able
> to start the service with deamon tools without a problem, when I go
> stop stop with svc -d ./service/jboss I notices my java jobs are still
> running
This is most likely because you are supervising the wrong process. I had
to modify the run.sh to make it monitor the right process. Basically you
need to prepend the java command with exec:
# Execute the JVM
exec "$JAVA" $JAVA_OPTS \
-Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
-classpath "$JBOSS_CLASSPATH" \
org.jboss.Main "$@"
Once you do this, supervise will supervise the java process and not the
run.sh process.
Andy
--
[-----------[system uptime]--------------------------------------------]
8:24am up 2 days, 14:27, 1 user, load average: 1.06, 1.21, 1.14