Skip to content

Instantly share code, notes, and snippets.

@charl
Created August 7, 2014 14:19
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 charl/c7cdc4f08aeec05e8eea to your computer and use it in GitHub Desktop.
Save charl/c7cdc4f08aeec05e8eea to your computer and use it in GitHub Desktop.
Etcd upstart script for process control
description "A highly-available key value store for shared configuration and service discovery"
author "Charl Matthee <charl@89n.com>"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]
respawn
respawn limit 10 5
chdir /var/lib/etcd
exec /usr/local/bin/etcd -config /etc/etcd/config.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment