Split the runit services into interactive and batch categories.
This commit is contained in:
parent
1e2ed16439
commit
572eeca8f5
47 changed files with 0 additions and 0 deletions
7
conf/init/service/interactive/gunicorn_web/log/run
Executable file
7
conf/init/service/interactive/gunicorn_web/log/run
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Ensure dependencies start before the logger
|
||||
sv check syslog-ng > /dev/null || exit 1
|
||||
|
||||
# Start the logger
|
||||
exec logger -i -t gunicorn_web
|
11
conf/init/service/interactive/gunicorn_web/run
Executable file
11
conf/init/service/interactive/gunicorn_web/run
Executable file
|
@ -0,0 +1,11 @@
|
|||
#! /bin/bash
|
||||
|
||||
echo 'Starting gunicon'
|
||||
|
||||
QUAYPATH=${QUAYPATH:-"."}
|
||||
QUAYCONF=${QUAYCONF:-"$QUAYPATH/conf"}
|
||||
|
||||
cd ${QUAYDIR:-"/"}
|
||||
PYTHONPATH=$QUAYPATH venv/bin/gunicorn -c $QUAYCONF/gunicorn_web.py web:application
|
||||
|
||||
echo 'Gunicorn exited'
|
Reference in a new issue