Index: www/Makefile =================================================================== --- www/Makefile +++ www/Makefile @@ -1945,6 +1945,7 @@ SUBDIR += rubygem-uglifier SUBDIR += rubygem-underscore-rails SUBDIR += rubygem-unicorn + SUBDIR += rubygem-unicorn-worker-killer SUBDIR += rubygem-url-mount SUBDIR += rubygem-url_escape SUBDIR += rubygem-wasabi Index: www/rubygem-unicorn-worker-killer/Makefile =================================================================== --- /dev/null +++ www/rubygem-unicorn-worker-killer/Makefile @@ -0,0 +1,22 @@ +# $FreeBSD$ + +PORTNAME= unicorn-worker-killer +PORTVERSION= 0.4.3 +CATEGORIES= www rubygems +MASTER_SITES= RG + +MAINTAINER= ports@michael-fausten.de +COMMENT= Kill unicorn workers by memory and request counts + +LICENSE= GPLv2 GPLv3 RUBY +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= rubygem-get_process_mem>=0:${PORTSDIR}/devel/rubygem-get_process_mem \ + rubygem-unicorn>=4:${PORTSDIR}/www/rubygem-unicorn + +USE_RUBY= yes +USE_RUBYGEMS= yes +RUBYGEM_AUTOPLIST= yes + +.include Index: www/rubygem-unicorn-worker-killer/distinfo =================================================================== --- /dev/null +++ www/rubygem-unicorn-worker-killer/distinfo @@ -0,0 +1,2 @@ +SHA256 (rubygem/unicorn-worker-killer-0.4.3.gem) = 00687ad93efc697629f9d782c140c03e1d580a0149327aa13db056c557d01a42 +SIZE (rubygem/unicorn-worker-killer-0.4.3.gem) = 9216 Index: www/rubygem-unicorn-worker-killer/pkg-descr =================================================================== --- /dev/null +++ www/rubygem-unicorn-worker-killer/pkg-descr @@ -0,0 +1,6 @@ +The unicorn-worker-killer gem provides automatic restart of Unicorn +workers based on the number of served requests and process memory size +without affecting any requests. This can improve stability by avoiding +unexpected memory exhaustion of applications. + +WWW: https://rubygems.org/gems/unicorn-worker-killer