1311 - remove buildmanager monit
This commit is contained in:
parent
40c0352dd1
commit
1ee2f0e3b2
5 changed files with 4 additions and 35 deletions
|
@ -2,13 +2,10 @@
|
|||
|
||||
echo 'Starting internal build manager'
|
||||
|
||||
# Run monit to ensure the build manager is restarted if/when it locks up.
|
||||
monit
|
||||
|
||||
# Run the build manager.
|
||||
QUAYPATH=${QUAYPATH:-"."}
|
||||
cd ${QUAYDIR:-"/"}
|
||||
export PYTHONPATH=$QUAYPATH
|
||||
exec venv/bin/python -m buildman.builder 2>&1
|
||||
|
||||
echo 'Internal build manager exited'
|
||||
echo 'Internal build manager exited'
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
PID=$(cat /etc/service/buildmanager/supervise/pid)
|
||||
gcore -o /tmp/buildman.core $PID
|
||||
|
||||
/usr/bin/sv kill /etc/service/buildmanager
|
17
conf/monitrc
17
conf/monitrc
|
@ -1,17 +0,0 @@
|
|||
set daemon 10 with start delay 30
|
||||
|
||||
set httpd port 2812 and
|
||||
use address localhost # only accept connection from localhost
|
||||
allow localhost # allow localhost to connect to the server and
|
||||
allow admin:monit # require user 'admin' with password 'monit'
|
||||
|
||||
check host buildmanager with address localhost
|
||||
start program = "/usr/bin/sv start /etc/service/buildmanager" with timeout 10 seconds
|
||||
stop program = "/usr/bin/sv kill /etc/service/buildmanager"
|
||||
if failed port 8787 protocol http
|
||||
request "/"
|
||||
status = 405
|
||||
with timeout 3 seconds
|
||||
for 3 cycles
|
||||
then restart
|
||||
if 10 restarts within 10 cycles then timeout
|
Reference in a new issue