mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
contrib: add example systemd unit file
This commit is contained in:
parent
e3ce605cb5
commit
652d3f1974
5
contrib/README.md
Normal file
5
contrib/README.md
Normal 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
|
16
contrib/systemd/etcd.service
Normal file
16
contrib/systemd/etcd.service
Normal 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
|
Loading…
x
Reference in New Issue
Block a user