Zk-ephemeral-wrapper is a project mainly written in Ruby, it's free.
Wrapper script that adds an ephemeral zookeeper node watching the child process