2016-07-11 14:05:05 +00:00
|
|
|
[Unit]
|
|
|
|
Description=etcd-proxy
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=notify
|
|
|
|
User=etcd
|
|
|
|
PermissionsStartOnly=true
|
|
|
|
EnvironmentFile=/etc/etcd-proxy.env
|
|
|
|
ExecStart={{ bin_dir }}/etcd
|
|
|
|
ExecStartPre=/bin/mkdir -p /var/lib/etcd-proxy
|
|
|
|
ExecStartPre=/bin/chown -R etcd: /var/lib/etcd-proxy
|
|
|
|
NotifyAccess=all
|
|
|
|
Restart=always
|
|
|
|
RestartSec=10s
|
|
|
|
LimitNOFILE=40000
|
2016-10-18 10:15:33 +00:00
|
|
|
OnStartupSec={{ etcd_start_delay }}
|
|
|
|
OnBootSec={{ etcd_start_delay }}
|
2016-07-11 14:05:05 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|