[Unit] Description=etcd key-value store Documentation=https://github.com/etcd-io/etcd After=network-online.target local-fs.target remote-fs.target time-sync.target Wants=network-online.target local-fs.target remote-fs.target time-sync.target [Service] EnvironmentFile=/etc/etcd.env User=etcd Type=notify ExecStart=/usr/bin/etcd \ --name ${THIS_NAME} \ --data-dir /var/lib/etcdSingle \ --initial-advertise-peer-urls http://${THIS_IP}:2380 \ --listen-peer-urls http://${THIS_IP}:2380 \ --advertise-client-urls http://${THIS_IP}:2379 \ --listen-client-urls http://${THIS_IP}:2379 \ --initial-cluster '${THIS_NAME}=http://${THIS_IP}:2380' \ --initial-cluster-token ${TOKEN} \ --initial-cluster-state ${CLUSTER_STATE} Restart=always RestartSec=10s LimitNOFILE=40000 [Install] WantedBy=multi-user.target