Skip to content

Instantly share code, notes, and snippets.

@wcharczuk
Created February 20, 2018 04:28
Show Gist options
  • Save wcharczuk/9ba8955ee5d3b2efd535ce0356562738 to your computer and use it in GitHub Desktop.
Save wcharczuk/9ba8955ee5d3b2efd535ce0356562738 to your computer and use it in GitHub Desktop.
Local Ubuntu etcd systemd service
[Unit]
Description=etcd
Documentation=https://github.com/coreos/etcd
Conflicts=etcd.service
Conflicts=etcd2.service
[Service]
Type=notify
Restart=always
RestartSec=5s
LimitNOFILE=40000
TimeoutStartSec=0
ExecStart=/usr/local/bin/etcd --name etcd-00 \
--data-dir /var/run/etcd \
--listen-client-urls http://127.0.0.1:2379 \
--advertise-client-urls http://127.0.0.1:2379 \
--listen-peer-urls http://127.0.0.1:2380 \
--initial-advertise-peer-urls http://127.0.0.1:2380 \
--initial-cluster-state new
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment