Created
May 20, 2016 20:36
-
-
Save robszumski/159f7c2468f02cf1632c32b045e399e1 to your computer and use it in GitHub Desktop.
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
$ 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