c12s-kubespray/roles/etcd/templates/etcd-proxy-host.service.j2

22 lines
447 B
Text
Raw Normal View History

[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
OnStartupSec={{ etcd_start_delay }}
OnBootSec={{ etcd_start_delay }}
[Install]
WantedBy=multi-user.target