From 39e927e92336692dd58298e1a6d585181a2ccee9 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 15 Jul 2019 13:11:36 -0700 Subject: [PATCH] app-admin/consul: increase max open files 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 --- .../consul/{consul-1.5.1.ebuild => consul-1.5.1-r1.ebuild} | 0 app-admin/consul/files/consul.initd | 1 + app-admin/consul/files/consul.service | 5 ++++- 3 files changed, 5 insertions(+), 1 deletion(-) rename app-admin/consul/{consul-1.5.1.ebuild => consul-1.5.1-r1.ebuild} (100%) diff --git a/app-admin/consul/consul-1.5.1.ebuild b/app-admin/consul/consul-1.5.1-r1.ebuild similarity index 100% rename from app-admin/consul/consul-1.5.1.ebuild rename to app-admin/consul/consul-1.5.1-r1.ebuild diff --git a/app-admin/consul/files/consul.initd b/app-admin/consul/files/consul.initd index 6d04eb564306..00a65695fa2b 100644 --- a/app-admin/consul/files/consul.initd +++ b/app-admin/consul/files/consul.initd @@ -7,6 +7,7 @@ extra_started_commands="reload" 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" diff --git a/app-admin/consul/files/consul.service b/app-admin/consul/files/consul.service index be897bcf8e97..7839d7c20a87 100644 --- a/app-admin/consul/files/consul.service +++ b/app-admin/consul/files/consul.service @@ -5,10 +5,13 @@ After=network-online.target [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 -- 2.26.2