Skip to content

Instantly share code, notes, and snippets.

@mbrevoort
Created April 18, 2014 07:03
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 mbrevoort/11028515 to your computer and use it in GitHub Desktop.
Save mbrevoort/11028515 to your computer and use it in GitHub Desktop.
/etc/init/consul.conf with appuser
# consul - agent instance
#
description "consul agent"
start on networking
stop on runlevel [06]
# Respawn it if the process exits
respawn
setuid appuser
setgid appuser
chdir /home/appuser
console log
exec /usr/local/bin/consul agent -server -data-dir /home/appuser/consul-data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment