summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zachary.medico@sony.com>2019-07-15 13:11:36 -0700
committerZac Medico <zmedico@gentoo.org>2019-07-15 13:27:08 -0700
commit39e927e92336692dd58298e1a6d585181a2ccee9 (patch)
treefd793f546bff668632dd9871a878937120e83919 /app-admin
parentdev-python/loguru: bump to 0.3.1 (diff)
downloadgentoo-39e927e92336692dd58298e1a6d585181a2ccee9.tar.gz
gentoo-39e927e92336692dd58298e1a6d585181a2ccee9.tar.bz2
gentoo-39e927e92336692dd58298e1a6d585181a2ccee9.zip
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 <zmedico@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/consul/consul-1.5.1-r1.ebuild (renamed from app-admin/consul/consul-1.5.1.ebuild)0
-rw-r--r--app-admin/consul/files/consul.initd1
-rw-r--r--app-admin/consul/files/consul.service5
3 files changed, 5 insertions, 1 deletions
diff --git a/app-admin/consul/consul-1.5.1.ebuild b/app-admin/consul/consul-1.5.1-r1.ebuild
index 23474dcfc441..23474dcfc441 100644
--- a/app-admin/consul/consul-1.5.1.ebuild
+++ b/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