On Tue, 12.01.16 17:16, Muayyad AlSadi (als...@gmail.com) wrote:

> > well. But if you can double fork() in Java you should be fine and can
> 
> it seems that zookeeper is doing the fork in the bash script using nohub
> not in java
> 
> > when it finished setting up its listening socket. You cannot script
> 
> typically I loop using "lsof" or "nc"

Such sleep loops are ugly and a hack. It would be much better to fix
this properly with a clean notification.

Doing such sleep loops will just help keeping up java's bad rep for
being slow...

Also, what happens if the daemon is configured to listen on some
different port? Or on multiple ports? Are you parsing the daemon's
config file too to figure out what to watch for? YUCK!

Lennart

-- 
Lennart Poettering, Red Hat
--
devel mailing list
devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org

Reply via email to