fix the rcscript, gunicorn doesn't need to be prefixed with MODPY_BIN_SUFFIX

anymore
This commit is contained in:
sebastia 2020-03-16 10:09:30 +00:00
parent 71a33eb0a9
commit 37354e3efa
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,8 @@
# $OpenBSD: Makefile,v 1.31 2020/02/07 13:08:47 sebastia Exp $
# $OpenBSD: Makefile,v 1.32 2020/03/16 10:09:30 sebastia Exp $
COMMENT= web interface to PuppetDB
REVISION = 0
MODPY_EGG_VERSION= 2.0.0
DISTNAME= puppetboard-${MODPY_EGG_VERSION}
CATEGORIES= www

View File

@ -1,6 +1,6 @@
#!/bin/ksh
#
# $OpenBSD: puppetboard.rc,v 1.7 2018/01/11 19:27:12 rpe Exp $
# $OpenBSD: puppetboard.rc,v 1.8 2020/03/16 10:09:30 sebastia Exp $
daemon="puppetboard_wsgi"
daemon_flags="--workers 4"
@ -12,7 +12,7 @@ pexp="${MODPY_BIN}.*${daemon_flags:+ ${daemon_flags}} ${daemon}:application"
rc_start() {
${rcexec} "cd ${INSTDIR} && \
${LOCALBASE}/bin/gunicorn${MODPY_BIN_SUFFIX} --daemon ${daemon_flags} ${daemon}:application"
${LOCALBASE}/bin/gunicorn --daemon ${daemon_flags} ${daemon}:application"
}
rc_cmd $1