Skip to content

Instantly share code, notes, and snippets.

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 robszumski/159f7c2468f02cf1632c32b045e399e1 to your computer and use it in GitHub Desktop.
Save robszumski/159f7c2468f02cf1632c32b045e399e1 to your computer and use it in GitHub Desktop.
$ systemctl cat etcd2
# /usr/lib64/systemd/system/etcd2.service
[Unit]
Description=etcd2
Conflicts=etcd.service
[Service]
User=etcd
Type=notify
Environment=ETCD_DATA_DIR=/var/lib/etcd2
Environment=ETCD_NAME=%m
ExecStart=/usr/bin/etcd2
Restart=always
RestartSec=10s
LimitNOFILE=40000
TimeoutStartSec=0
[Install]
WantedBy=multi-user.target
# /run/systemd/system/etcd2.service.d/10-oem.conf
[Service]
Environment=ETCD_ELECTION_TIMEOUT=1200
# /run/systemd/system/etcd2.service.d/20-cloudinit.conf
[Service]
Environment="ETCD_ADVERTISE_CLIENT_URLS=http://10.0.0.50:2379"
Environment="ETCD_INITIAL_ADVERTISE_PEER_URLS=http://10.0.0.50:2380"
Environment="ETCD_INITIAL_CLUSTER=controller=http://10.0.0.50:2380"
Environment="ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379"
Environment="ETCD_LISTEN_PEER_URLS=http://0.0.0.0:2380"
Environment="ETCD_NAME=controller"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment