Created
May 27, 2014 06:06
-
-
Save logikal/ccc91f1c826e5241a6a6 to your computer and use it in GitHub Desktop.
consul upstart script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "the consul service" | |
start on filesystem or runlevel [2345] | |
stop on runlevel [!2345] | |
pre-stop exec consul leave | |
respawn | |
umask 022 | |
chdir / | |
setuid root | |
setgid root | |
console log # log stdout/stderr to /var/log/upstart/ | |
export GOMAXPROCS=`nproc` | |
exec consul agent \ | |
"--config-dir=/etc/consul" \ | |
${CONSUL_FLAGS} \ | |
>> /var/log/consul.log 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment