Feeds:
Posts
Comments

Posts Tagged ‘Apache Azkaban Daemontools svc supervise svc -d child process don’t die’

To bring Apache Azkaban under daemontools supervision, edit the following Azkaban file in bin directory:

azkaban-server.sh

add exec before java in last line. That should then looks like following

exec java -Dlog4j.configuration=file://$AZKABAN_HOME/azkaban/log4j.xml $AZKABAN_OPTS -cp $CLASSPATH azkaban.app.AzkabanApp –static-dir $base_dir/azkaban/web/static $@

This will make exec the parent process for java and all of its subordinate process.

Now doing svc -dx  or  svc -d would stop Azkaban.

Got this idea from Cassandra that is also under daemontools supervision.

Advertisements

Read Full Post »