contrib: add example systemd unit file

This commit is contained in:
Jonathan Boulle 2015-11-06 15:45:01 +01:00
parent e3ce605cb5
commit 652d3f1974
2 changed files with 21 additions and 0 deletions

5
contrib/README.md Normal file
View File

@ -0,0 +1,5 @@
## contrib
Scripts and files which may be useful but aren't part of the core etcd project.
- [systemd](systemd) - an example unit file for deploying etcd on systemd-based distributions

View File

@ -0,0 +1,16 @@
[Unit]
Description=etcd key-value store
Documentation=https://github.com/coreos/etcd
[Service]
User=etcd
Type=notify
Environment=ETCD_DATA_DIR=/var/lib/etcd
Environment=ETCD_NAME=%m
ExecStart=/usr/bin/etcd
Restart=always
RestartSec=10s
LimitNOFILE=40000
[Install]
WantedBy=multi-user.target