2016-01-19 14:23:19 +00:00
|
|
|
[Unit]
|
|
|
|
Description=etcd
|
2016-07-15 12:17:17 +00:00
|
|
|
After=network.target
|
2016-01-19 14:23:19 +00:00
|
|
|
|
|
|
|
[Service]
|
2016-07-15 12:17:17 +00:00
|
|
|
Type=notify
|
2016-01-19 14:23:19 +00:00
|
|
|
User=etcd
|
|
|
|
EnvironmentFile=/etc/etcd.env
|
|
|
|
ExecStart={{ bin_dir }}/etcd
|
2016-07-15 12:17:17 +00:00
|
|
|
NotifyAccess=all
|
2016-01-19 14:23:19 +00:00
|
|
|
Restart=always
|
|
|
|
RestartSec=10s
|
|
|
|
LimitNOFILE=40000
|
2016-10-18 10:15:33 +00:00
|
|
|
OnStartupSec={{ etcd_start_delay }}
|
|
|
|
OnBootSec={{ etcd_start_delay }}
|
2016-01-19 14:23:19 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|