18 lines
546 B
Plaintext
18 lines
546 B
Plaintext
|
{%- from "etcd/map.jinja" import etcd with context -%}
|
||
|
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
||
|
[Unit]
|
||
|
Description=Distributed reliable key-value store for the most critical data of a distributed system
|
||
|
Documentation=https://etcd.io/
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
ExecStart={{ etcd.install_dir }}/etcd/etcd --config-file /etc/etcd/etcd.yml
|
||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||
|
KillMode=control-group
|
||
|
Restart=on-failure
|
||
|
RestartForceExitStatus=SIGPIPE
|
||
|
WorkingDirectory=/var/lib/etcd
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|