Update Zeppelin shell scripts

I suggest Zeppelin use a consistent shell styleguide to make code easier to read\understand and less bug-prone.
So you are saying that it is better to use ` pkill -SIGTERM` or ` killproc
-p`?

I can change this tomorrow :)
On Dec 10, 2014 8:55 PM, "Lee moon soo" <notifications@github.com> wrote:

> In bin/zeppelin-daemon.sh
> <https://github.com/NFLabs/zeppelin/pull/236#discussion-diff-21598731>:
>
> > -	fi
> > -    else
> > -	echo no Zeppelin to stop
> > -    fi
> > -
> > +function stop() {
> > +  local pid
> > +  if [[ ! -f "${ZEPPELIN_PID}" ]]; then
> > +    action_msg "${ZEPPELIN_NAME} is not running" "${SET_ERROR}"
> > +     exit 1;
> > +  fi
> > +  pid="`cat ${ZEPPELIN_PID}`"
> > +  if [[ -z "${pid}" ]]; then
> > +    action_msg "${ZEPPELIN_NAME} is not running" "${SET_ERROR}"
> > +  else
> > +    kill -9 ${pid}
>
> Let's not do 'kill -9' we need graceful termination.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/NFLabs/zeppelin/pull/236/files#r21598731>.
>