The exec method needs to be plumbed all the way through to the point java is called.
please excuse my brevity on this mobile device On Oct 24, 2012 9:25 AM, "howard chen" <howac...@gmail.com> wrote: > Hi, > > > On Tue, Oct 23, 2012 at 1:25 AM, David DeMaagd <ddema...@linkedin.com> > wrote: > > exec $(dirname $0)/kafka-run-class.sh kafka.Kafka $@ > > Thanks for your tips first. > > I updated as you suggested, but experience the following issue: > > Before stopping from supervisor, the pstree is: > > > ├─supervisord(1696)───kafka-run-class(1736)───java(1739)─┬─{java}(1740) > > Look good right? > > Then I stop from supervisor (supervisorctl stop kafka), it then become.. > > ├─java(1739)─┬─{java}(1740) > > You see, the java is `detached` from the `kafka-run-class` but still > running in the background and continue using the port... >