ports/115717: New port: java/exist, eXist is an Open Source native XML database

Alejandro Pulver alepulver at FreeBSD.org
Fri Sep 14 06:18:33 UTC 2007


Hello.

The port's wrapper script doesn't stop the application (however if you
run shutdown.sh without parameters it works), and can't determine when
it's running. This could just be a problem with the arguments. But may
be solved with the solution below (javaservicewrapper).

There are two ways of determining if a process is running: by a PID
file or process name. In this case the process name should be used, but
it's '[java]' so can't be differentiated from others.

I saw something interesting called Java Service Wrapper, it's like a
"daemon launcher" for Java programs. This program is integrated in
eXist, but only has Linux/Windows binary versions, that's why I've
created a port sysutils/javaservicewrapper. Then the port could depend
on it and symlink the binaries replacing the Linux ones, and eXist
wouldn't notice it.

The reason for using javaservicewrapper is that it creates a PID file
when launching the daemon, which could be used in the rc.d script. And
also provides all the needed functions (start, stop, status, etc) as an
rc.d script itself.

I will be out the next week, if you haven't found a solution then, I'll
look at it (should be easy though, but I'm preparing for the travel).

Best Regards,
Ale
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs/attachments/20070914/51026137/attachment.sig>


More information about the freebsd-ports-bugs mailing list