2016-01-19 22:23:19 +08:00
|
|
|
[Unit]
|
|
|
|
Description=etcd
|
2016-07-15 20:17:17 +08:00
|
|
|
After=network.target
|
2016-01-19 22:23:19 +08:00
|
|
|
|
|
|
|
[Service]
|
2016-07-15 20:17:17 +08:00
|
|
|
Type=notify
|
2018-02-13 00:34:01 +08:00
|
|
|
User=root
|
2016-01-19 22:23:19 +08:00
|
|
|
EnvironmentFile=/etc/etcd.env
|
|
|
|
ExecStart={{ bin_dir }}/etcd
|
2016-07-15 20:17:17 +08:00
|
|
|
NotifyAccess=all
|
2016-01-19 22:23:19 +08:00
|
|
|
Restart=always
|
|
|
|
RestartSec=10s
|
|
|
|
LimitNOFILE=40000
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|