See: https://learn.hashicorp.com/consul/datacenter-deploy/deployment-guide#configure-systemd
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Copyright: Sony Interactive Entertainment Inc.
Signed-off-by: Zac Medico <zmedico@gentoo.org>
group=${group:-${RC_SVCNAME}}
user=${user:-${RC_SVCNAME}}
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
+rc_ulimit=${rc_ulimit-"-n 65536"}
command="/usr/bin/${RC_SVCNAME}"
command_args="agent ${command_args:-config-dir=/etc/consul.d}"
command_background="true"
[Service]
User=consul
+Group=consul
Environment=CONSUL_AGENT_OPTS="-config-dir=/etc/consul.d"
ExecStart=/usr/bin/consul agent $CONSUL_AGENT_OPTS
-Restart=on-failure
ExecReload=/usr/bin/consul reload
+KillMode=process
+Restart=on-failure
+LimitNOFILE=65536
[Install]
WantedBy=default.target