Route all of the logging through syslog-ng. Add the ability to specify extra syslog-ng config. Simplify the Dockerfile.
This commit is contained in:
parent
b1537a01aa
commit
24cf27bd12
32 changed files with 32 additions and 46 deletions
2
conf/init/service/buildlogsarchiver/log/run
Executable file
2
conf/init/service/buildlogsarchiver/log/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t buildlogsarchiver
|
8
conf/init/service/buildlogsarchiver/run
Executable file
8
conf/init/service/buildlogsarchiver/run
Executable file
|
@ -0,0 +1,8 @@
|
|||
#! /bin/bash
|
||||
|
||||
echo 'Starting build logs archiver worker'
|
||||
|
||||
cd /
|
||||
venv/bin/python -m workers.buildlogsarchiver 2>&1
|
||||
|
||||
echo 'Diffs worker exited'
|
2
conf/init/service/buildmanager/log/run
Executable file
2
conf/init/service/buildmanager/log/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t buildmanager
|
8
conf/init/service/buildmanager/run
Executable file
8
conf/init/service/buildmanager/run
Executable file
|
@ -0,0 +1,8 @@
|
|||
#! /bin/bash
|
||||
|
||||
echo 'Starting internal build manager'
|
||||
|
||||
cd /
|
||||
venv/bin/python -m buildman.builder 2>&1
|
||||
|
||||
echo 'Internal build manager exited'
|
2
conf/init/service/diffsworker/log/run
Executable file
2
conf/init/service/diffsworker/log/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t diffsworker
|
8
conf/init/service/diffsworker/run
Executable file
8
conf/init/service/diffsworker/run
Executable file
|
@ -0,0 +1,8 @@
|
|||
#! /bin/bash
|
||||
|
||||
echo 'Starting diffs worker'
|
||||
|
||||
cd /
|
||||
venv/bin/python -m workers.diffsworker
|
||||
|
||||
echo 'Diffs worker exited'
|
2
conf/init/service/gunicorn_registry/log/run
Executable file
2
conf/init/service/gunicorn_registry/log/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t gunicorn_registry
|
8
conf/init/service/gunicorn_registry/run
Executable file
8
conf/init/service/gunicorn_registry/run
Executable file
|
@ -0,0 +1,8 @@
|
|||
#! /bin/bash
|
||||
|
||||
echo 'Starting gunicon'
|
||||
|
||||
cd /
|
||||
nice -n 10 venv/bin/gunicorn -c conf/gunicorn_registry.py registry:application
|
||||
|
||||
echo 'Gunicorn exited'
|
2
conf/init/service/gunicorn_verbs/log/run
Executable file
2
conf/init/service/gunicorn_verbs/log/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t gunicorn_verbs
|
8
conf/init/service/gunicorn_verbs/run
Executable file
8
conf/init/service/gunicorn_verbs/run
Executable file
|
@ -0,0 +1,8 @@
|
|||
#! /bin/bash
|
||||
|
||||
echo 'Starting gunicon'
|
||||
|
||||
cd /
|
||||
nice -n 10 venv/bin/gunicorn -c conf/gunicorn_verbs.py verbs:application
|
||||
|
||||
echo 'Gunicorn exited'
|
2
conf/init/service/gunicorn_web/log/run
Executable file
2
conf/init/service/gunicorn_web/log/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t gunicorn_web
|
8
conf/init/service/gunicorn_web/run
Executable file
8
conf/init/service/gunicorn_web/run
Executable file
|
@ -0,0 +1,8 @@
|
|||
#! /bin/bash
|
||||
|
||||
echo 'Starting gunicon'
|
||||
|
||||
cd /
|
||||
venv/bin/gunicorn -c conf/gunicorn_web.py web:application
|
||||
|
||||
echo 'Gunicorn exited'
|
2
conf/init/service/nginx/log/run
Executable file
2
conf/init/service/nginx/log/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t nginx
|
14
conf/init/service/nginx/run
Executable file
14
conf/init/service/nginx/run
Executable file
|
@ -0,0 +1,14 @@
|
|||
#! /bin/bash
|
||||
|
||||
echo 'Starting nginx'
|
||||
|
||||
if [ -f /conf/stack/ssl.key ]
|
||||
then
|
||||
echo "Using HTTPS"
|
||||
/usr/local/nginx/sbin/nginx -c /conf/nginx.conf
|
||||
else
|
||||
echo "No SSL key provided, using HTTP"
|
||||
/usr/local/nginx/sbin/nginx -c /conf/nginx-nossl.conf
|
||||
fi
|
||||
|
||||
echo 'Nginx exited'
|
2
conf/init/service/notificationworker/log/run
Executable file
2
conf/init/service/notificationworker/log/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t notificationworker
|
8
conf/init/service/notificationworker/run
Executable file
8
conf/init/service/notificationworker/run
Executable file
|
@ -0,0 +1,8 @@
|
|||
#! /bin/bash
|
||||
|
||||
echo 'Starting notification worker'
|
||||
|
||||
cd /
|
||||
venv/bin/python -m workers.notificationworker
|
||||
|
||||
echo 'Notification worker exited'
|
Reference in a new issue