Browse Source

contrib: add example systemd unit file

Jonathan Boulle 10 years ago
parent
commit
652d3f1974
2 changed files with 21 additions and 0 deletions
  1. 5 0
      contrib/README.md
  2. 16 0
      contrib/systemd/etcd.service

+ 5 - 0
contrib/README.md

@@ -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 - 0
contrib/systemd/etcd.service

@@ -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