Forked from f0/gist:79460de6b451db57287bc4eb7ed9956a
Last active
June 29, 2016 20:40
-
-
Save lucab/a7c18e0795aac654e89c380294950d85 to your computer and use it in GitHub Desktop.
This file contains 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 | |
After=network-online.target | |
[Service] | |
Slice=machine.slice | |
Delegate=true | |
ExecStartPre=-/opt/rkt/rkt gc --grace-period=0s | |
ExecStartPre=-/opt/rkt/rkt fetch --insecure-options=all http://repo.example.com/etcd-v2.3.6-linux-amd64.aci | |
ExecStart=/opt/rkt/rkt --insecure-options=all run --uuid-file-save /var/run/rkt-etcd-%I.uuid --volume=data-dir,kind=host,source=/opt/data/etcd --net=default-restricted,container:IP=10.62.0.22 --dns=10.61.112.254 --dns=10.61.12.254 coreos.com/etcd:v2.3.6 -- --debug --name="10.62.0.22" --data-dir="/data-dir" --listen-client-urls="http://10.62.0.22:2379" --listen-peer-urls="http://10.62.0.22:2380" --initial-cluster-state="existing" --initial-advertise-peer-urls="http://10.62.0.22:2380" --advertise-client-urls="http://10.62.0.22:2379" --initial cluster="10.62.0.22=http://10.62.0.22:2380,10.61.112.200=http://10.61.112.200:2380,10.61.12.168=http://10.61.12.168:2380,10.61.12.169=http://10.61.12.169:2380" | |
Restart=on-failure | |
LimitNOFILE=65536 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment