contrib/systemd/etcd.service
raw| 1 | [Unit] |
| 2 | Description=etcd key-value store |
| 3 | Documentation=https://github.com/etcd-io/etcd |
| 4 | After=network-online.target local-fs.target remote-fs.target time-sync.target |
| 5 | Wants=network-online.target local-fs.target remote-fs.target time-sync.target |
| 6 | |
| 7 | [Service] |
| 8 | User=etcd |
| 9 | Type=notify |
| 10 | Environment=ETCD_DATA_DIR=/var/lib/etcd |
| 11 | Environment=ETCD_NAME=%m |
| 12 | ExecStart=/usr/bin/etcd |
| 13 | Restart=always |
| 14 | RestartSec=10s |
| 15 | LimitNOFILE=40000 |
| 16 | |
| 17 | [Install] |
| 18 | WantedBy=multi-user.target |