Skip to content

Instantly share code, notes, and snippets.

@feniix
Created March 10, 2015 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feniix/384b9a275cff3dff7830 to your computer and use it in GitHub Desktop.
Save feniix/384b9a275cff3dff7830 to your computer and use it in GitHub Desktop.
upstart-chronos.conf
# chronos
#
# This upstart job configuration is managed by Puppet.
# Do not edit this file. Your changes will be lost.
description "Chronos"
version "2.3.2"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 5 10
console log
script
ulimit -n 65636
ulimit -s 10240
ulimit -c unlimited
. /etc/chronos-env
export MESOS_ZK_URL
export CHRONOS_ZK_URL
echo "master: $MESOS_ZK_URL chronos: $CHRONOS_ZK_URL"
exec java -Djava.library.path=/usr/lib -Djava.util.logging.SimpleFormatter.format=%2$s%5$s%6$s%n -Xmx512m -cp /usr/bin/chronos org.apache.mesos.chronos.scheduler.Main --master zk://$MESOS_ZK_URL --zk_hosts zk://$CHRONOS_ZK_URL --http_port 4400
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment