The latest version of the rest gateway, now available in trunk, works the way you want it.
I had the same problem you have while working on the code. There is also a simple start/stop script available (src/contrib/rest/rest.sh). You should checkout the trunk  or . Runt "ant jar" in the root folder and "ant tar" in src/contrib/rest. After running these steps you will find in build/contrib/rest/ a .tar.gz archive that contains everything you need to run a standalone REST gateway for ZooKeeper. The config file should be pretty much self explanatory but if you need more help let me know. The version in the trunk is now session aware and you can use it even to implement things like leader election (you can find some python examples in src/contrib/rest/src/python). I'm planning to add more features to it, things like ACLs and session authentication but unfortunately I haven't got the time. I should be able to do this in the near future.  http://hadoop.apache.org/zookeeper/version_control.html  http://github.com/apache/zookeeper On Thu, Sep 30, 2010 at 7:01 PM, Patrick Hunt <ph...@apache.org> wrote: > Hi Marc, you should checkout the REST interface that's on the svn trunk, it > includes new functionality and numerous fixes that might be interesting to > you, this will be part of 3.4.0. CCing Andrei who worked on this as part of > his GSOC project this summer. > If you look at this file: > src/contrib/rest/src/java/org/apache/zookeeper/server/jersey/RestMain.java > you'll see how we start the server. Looks like we need an option to run as a > process w/o assuming interactive use. It should be pretty easy for someone > to patch this (if you do please consider submitting a patch via our JIRA > process, others would find it interesting). With the current code you might > get away with something like "java .... < /dev/null" -- basically turn off > stdin. > Patrick > On Wed, Sep 29, 2010 at 3:09 PM, marc slayton <gangofn...@yahoo.com> wrote: >> >> Hey all -- >> >> Having a great time with Zookeeper and recently started testing >> the RESTful interface in src/contrib. >> >> 'ant runrestserver' creates a test instance attached to stdin >> which works well but any input kills it. How does one configure >> Jersey to run for real i.e. not attached to my terminal's >> stdin? >> >> I've tried altering log4j settings without much luck. >> >> If there are example setup docs for Linux, could somebody point >> me there? FWIW, I'm running zookeeper-3.3.1 with openjdk-1.6. >> >> Cheers, and thanks in advance -- >> >> >> > -- Andrei Savu -- http://www.andreisavu.ro/