Description
The flume-daemon.sh script sends a kill -TERM to the JVM and immediately returns. This creates a race condition in certain shell scripts and makes restarting the process annoying. The script should poll to see if the process has shutdown for X seconds and exit with a warning if it refuses to die.