aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authormmoll <mmoll@FreeBSD.org>2015-05-09 23:19:27 +0800
committermmoll <mmoll@FreeBSD.org>2015-05-09 23:19:27 +0800
commit576f352a547b199f4b7abc74356255b2b9495e70 (patch)
tree6b1dc49ddd28df40142765ed64fb5aa55498e98e /www
parent19a36e57aa2ad6ef1ee0209c46ae623e92bd4536 (diff)
downloadfreebsd-ports-gnome-576f352a547b199f4b7abc74356255b2b9495e70.tar.gz
freebsd-ports-gnome-576f352a547b199f4b7abc74356255b2b9495e70.tar.zst
freebsd-ports-gnome-576f352a547b199f4b7abc74356255b2b9495e70.zip
new port: www/rubygem-unicorn-worker-killer
Kill unicorn workers by memory and request counts WWW: https://rubygems.org/gems/unicorn-worker-killer PR: 199927 Differential Revision: https://reviews.freebsd.org/D2496 Submitted by: Michael Fausten <ports@michael-fausten.de> Approved by: mat (mentor)
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/rubygem-unicorn-worker-killer/Makefile22
-rw-r--r--www/rubygem-unicorn-worker-killer/distinfo2
-rw-r--r--www/rubygem-unicorn-worker-killer/pkg-descr6
4 files changed, 31 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 34e039f4c2fc..114ce88de0a3 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1946,6 +1946,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
diff --git a/www/rubygem-unicorn-worker-killer/Makefile b/www/rubygem-unicorn-worker-killer/Makefile
new file mode 100644
index 000000000000..b62a3984dbd2
--- /dev/null
+++ b/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 <bsd.port.mk>
diff --git a/www/rubygem-unicorn-worker-killer/distinfo b/www/rubygem-unicorn-worker-killer/distinfo
new file mode 100644
index 000000000000..c2d761588476
--- /dev/null
+++ b/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
diff --git a/www/rubygem-unicorn-worker-killer/pkg-descr b/www/rubygem-unicorn-worker-killer/pkg-descr
new file mode 100644
index 000000000000..7fd5533fe5a3
--- /dev/null
+++ b/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