Skip to content

Instantly share code, notes, and snippets.

@sroze
Created May 23, 2015 15:08
Show Gist options
  • Save sroze/bac81f5bcad308d9da09 to your computer and use it in GitHub Desktop.
Save sroze/bac81f5bcad308d9da09 to your computer and use it in GitHub Desktop.
etcd upstart
ETCD_OPTIONS="--addr=127.0.0.1:4001 --bind-addr=0.0.0.0:4001 --data-dir=/var/etcd/data"
description "Etcd"
script
# modify these in /etc/default/$UPSTART_JOB (/etc/default/etcd)
ETCD=/usr/bin/$UPSTART_JOB
ETCD_OPTIONS=
if [ -f /etc/default/$UPSTART_JOB ]; then
. /etc/default/$UPSTART_JOB
fi
exec "$ETCD" $ETCD_OPTIONS
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment