20 lines
378 B
Text
20 lines
378 B
Text
|
[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
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|