Created
February 20, 2018 04:28
-
-
Save wcharczuk/9ba8955ee5d3b2efd535ce0356562738 to your computer and use it in GitHub Desktop.
Local Ubuntu etcd systemd service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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