Skip to content

Instantly share code, notes, and snippets.

@kelseyhightower
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save kelseyhightower/559ad482f8311cb54705 to your computer and use it in GitHub Desktop.

Select an option

Save kelseyhightower/559ad482f8311cb54705 to your computer and use it in GitHub Desktop.
# /etc/systemd/system/etcd.service
[Unit]
Description=etcd
[Service]
User=etcd
PermissionsStartOnly=true
Environment="ETCD_ADDR=100.78.239.13:4001"
Environment="ETCD_BIND_ADDR=0.0.0.0:4001"
Environment="ETCD_PEERS=100.78.239.12:7001,100.78.239.14:7001"
Environment="ETCD_PEER_ADDR=100.78.239.13:7001"
Environment=ETCD_DATA_DIR=/var/lib/etcd
Environment=ETCD_NAME=%m
ExecStart=/usr/bin/etcd
Restart=always
RestartSec=10s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment