templates/default/upstart/etcd.conf.erb (10 lines of code) (raw):
description "<%= @etcd_name %> daemon"
start on (filesystem and net-device-up IFACE!=lo)
stop on runlevel [!2345]
limit nofile 524288 1048576
limit nproc 524288 1048576
respawn
respawn limit 2 10
setuid <%= @config.run_user %>
setgid <%= @config.run_user %>
exec <%= @etcd_cmd %> >> <%= @logfile %> 2>&1