supervisord is pretty easy to use. Netflix Exhibitor will manage this all for zookeeper, if you want to try that tool.
On Wed, Jun 17, 2015 at 7:03 AM, Kashyap Mhaisekar <kashya...@gmail.com> wrote: > We use supervisord for this. It ensures that the processes are always up > and running. > > Thanks > Kashyap > > On Wednesday, June 17, 2015, Shayne S <shaynest...@gmail.com> wrote: > > > kafka-server-start.sh has a -daemon option, but I don't think Zookeeper > has > > it. > > > > On Tue, Jun 16, 2015 at 11:32 PM, Su She <suhsheka...@gmail.com > > <javascript:;>> wrote: > > > > > It seems like nohup has solved this issue, even when the putty window > > > becomes inactive the processes are still running (I din't need to > > > interact with them). I might look into using screen or tmux as a long > > > term solution. > > > > > > Thanks Terry and Mike! > > > > > > Best, > > > > > > Su > > > > > > > > > On Tue, Jun 16, 2015 at 3:42 PM, Terry Bates <terryjba...@gmail.com > > <javascript:;>> > > > wrote: > > > > Greetings, > > > > > > > > nohup does the trick, as Mr. Bridge has shared. If you seem to want > to > > > run > > > > these and still have some "interactivity" with > > > > the services, consider using "screen" or "tmux" as these will enable > > you > > > to > > > > run these programs in foreground, have added > > > > windows you can use to access shell, tail logs, and so on, and enable > > you > > > > to disconnect from the session, but still have > > > > these sessions available for re-attachment. > > > > > > > > In addition, I using "runit" for service supervision may enable you > to > > > keep > > > > daemons running, but if your services are dying > > > > you may need to introspect more deeply on the root cause versus > working > > > > around it by restarting them. > > > > > > > > > > > > *Terry Bates* > > > > > > > > *Email: *terryjba...@gmail.com <javascript:;> > > > > *Phone: (*412) 215-0881 > > > > *Skype*: terryjbates > > > > *GitHub*: https://github.com/terryjbates > > > > *Linkedin*: http://www.linkedin.com/in/terryjbates/ > > > > > > > > > > > > On Tue, Jun 16, 2015 at 3:30 PM, Mike Bridge <m...@bridgecanada.com > > <javascript:;>> > > > wrote: > > > > > > > >> Have you tried using "nohup" > > > >> > > > >> nohup bin/zookeeper-server-start.sh config/zookeeper.properties > & > > > >> nohup bin/kafka-server-start.sh config/server.properties & > > > >> > > > >> > > > >> On Tue, Jun 16, 2015 at 3:21 PM, Su She <suhsheka...@gmail.com > > <javascript:;>> wrote: > > > >> > > > >> > Hello Everyone, > > > >> > > > > >> > I'm wondering how to keep Zookeeper and Kafka Server up even when > my > > > >> > SSH (using putty) becomes inactive. I've tried running it in the > > > >> > background (using &), but it seems like it stops sometimes after a > > > >> > couple hours or so and I'll have to restart zookeeper and/or the > > kafka > > > >> > server. > > > >> > > > > >> > The only remediation i've found is to export TMOUT=[big number], > but > > > >> > there must be another solution. > > > >> > > > > >> > Thank you! > > > >> > > > > >> > Best, > > > >> > > > > >> > Su > > > >> > > > > >> > > > > > >