summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/py-gunicorn/Makefile2
-rw-r--r--www/py-gunicorn/files/gunicorn.in15
2 files changed, 11 insertions, 6 deletions
diff --git a/www/py-gunicorn/Makefile b/www/py-gunicorn/Makefile
index 3fe09753c57d..29a2828b1fe3 100644
--- a/www/py-gunicorn/Makefile
+++ b/www/py-gunicorn/Makefile
@@ -1,6 +1,6 @@
PORTNAME= gunicorn
DISTVERSION= 23.0.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/www/py-gunicorn/files/gunicorn.in b/www/py-gunicorn/files/gunicorn.in
index 62e1fb68f56d..cb2c8dabaa8e 100644
--- a/www/py-gunicorn/files/gunicorn.in
+++ b/www/py-gunicorn/files/gunicorn.in
@@ -6,9 +6,14 @@
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable gunicorn:
-# gunicorn_enable (bool): Set to "NO" by default.
-# Set it to "YES" to enable gunicorn.
+# gunicorn_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable gunicorn.
#
+# gunicorn_config (str): Path to gunicorn config file.
+#
+# gunicorn_user (str): User to run gunicorn as.
+#
+# gunicorn_group (str): Group to run gunicorn as.
. /etc/rc.subr
@@ -20,9 +25,9 @@ rcvar=gunicorn_enable
load_rc_config $name
: ${gunicorn_enable:=NO}
-: ${gunicorn_config=%%PREFIX%%/etc/gunicorn/gunicorn.conf.py}
-: ${gunicorn_user=%%USERS%%}
-: ${gunicorn_group=%%GROUPS%%}
+: ${gunicorn_config:=%%PREFIX%%/etc/gunicorn/gunicorn.conf.py}
+: ${gunicorn_user:=%%USERS%%}
+: ${gunicorn_group:=%%GROUPS%%}
pidfile="/var/run/${name}.pid"
cpidfile="/var/run/${name}-worker.pid"