caddy: handle max open files correctly

This commit is contained in:
Frank Steinborn 2020-01-27 20:23:48 +01:00 committed by Juan RP
parent 7e27697a8a
commit b8803d4e82
2 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,8 @@
#!/bin/sh #!/bin/sh
[ -r ./conf ] && . ./conf
export CADDYPATH=/var/lib/caddy export CADDYPATH=/var/lib/caddy
ulimit -n ${MAX_OPEN_FILES:-8192}
cd /etc/caddy cd /etc/caddy
exec chpst -o 8192 -u caddy caddy exec chpst -u caddy caddy

View file

@ -1,7 +1,7 @@
# Template file for 'caddy' # Template file for 'caddy'
pkgname=caddy pkgname=caddy
version=1.0.4 version=1.0.4
revision=1 revision=2
build_style=go build_style=go
go_import_path=github.com/caddyserver/caddy go_import_path=github.com/caddyserver/caddy
go_package="${go_import_path}/caddy" go_package="${go_import_path}/caddy"