summarylogtreecommitdiffstats
path: root/etcd.service
diff options
context:
space:
mode:
Diffstat (limited to 'etcd.service')
-rw-r--r--etcd.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/etcd.service b/etcd.service
new file mode 100644
index 000000000000..f6bb84728af7
--- /dev/null
+++ b/etcd.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=etcd
+
+[Service]
+User=etcd
+PermissionsStartOnly=true
+Environment=ETCD_DATA_DIR=/var/lib/etcd
+Environment=ETCD_NAME=%H
+Environment=ETCD_INITIAL_CLUSTER=%H=http://localhost:2380,%H=http://localhost:7001
+EnvironmentFile=-/etc/conf.d/etcd
+ExecStart=/usr/bin/etcd
+Restart=always
+RestartSec=10s
+
+[Install]
+WantedBy=multi-user.target