Skip to content

Instantly share code, notes, and snippets.

@kelseyhightower
Created April 15, 2016 23:21
Show Gist options
  • Save kelseyhightower/d9f476a422c39802e18f3dcceee71d52 to your computer and use it in GitHub Desktop.
Save kelseyhightower/d9f476a422c39802e18f3dcceee71d52 to your computer and use it in GitHub Desktop.
[Unit]
Description=etcd
Documentation=https://github.com/coreos/etcd
[Service]
ExecStart=/usr/bin/etcd \
--advertise-client-urls http://127.0.0.1:2379 \
--data-dir /var/lib/etcd \
--listen-client-urls http://127.0.0.1:2379 \
--listen-peer-urls http://127.0.0.1:2380 \
--name etcd0
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment