runit: add dependencies to loggers (#1515)

This guarantees that the logger starts after syslog and the process it's
logging.
This commit is contained in:
Jimmy Zelinskie 2016-06-03 15:32:15 -04:00
parent 338f93c3c8
commit 2464e007d8
17 changed files with 132 additions and 13 deletions

View file

@ -1,2 +1,9 @@
#!/bin/sh
# Ensure dependencies start before the logger
sv start syslog-ng || exit 1
sv start buildlogsarchiver || exit 1
sleep 1
# Start the logger
exec logger -i -t buildlogsarchiver

View file

@ -1,2 +1,9 @@
#!/bin/sh
# Ensure dependencies start before the logger
sv start syslog-ng || exit 1
sv start buildmanager || exit 1
sleep 1
# Start the logger
exec logger -i -t buildmanager

View file

@ -1,2 +1,9 @@
#!/bin/sh
# Ensure dependencies start before the logger
sv start syslog-ng || exit 1
sv start gcworker || exit 1
sleep 1
# Start the logger
exec logger -i -t gcworker

View file

@ -1,2 +1,9 @@
#!/bin/sh
# Ensure dependencies start before the logger
sv start syslog-ng || exit 1
sv start gunicorn_registry || exit 1
sleep 1
# Start the logger
exec logger -i -t gunicorn_registry

View file

@ -1,2 +1,9 @@
#!/bin/sh
# Ensure dependencies start before the logger
sv start syslog-ng || exit 1
sv start gunicorn_secscan || exit 1
sleep 1
# Start the logger
exec logger -i -t gunicorn_secscan

View file

@ -1,2 +1,9 @@
#!/bin/sh
# Ensure dependencies start before the logger
sv start syslog-ng || exit 1
sv start gunicorn_verbs || exit 1
sleep 1
# Start the logger
exec logger -i -t gunicorn_verbs

View file

@ -1,2 +1,9 @@
#!/bin/sh
# Ensure dependencies start before the logger
sv start syslog-ng || exit 1
sv start gunicorn_web || exit 1
sleep 1
# Start the logger
exec logger -i -t gunicorn_web

View file

@ -1,2 +1,9 @@
#!/bin/sh
# Ensure dependencies start before the logger
sv start syslog-ng || exit 1
sv start jwtproxy || exit 1
sleep 1
# Start the logger
exec logger -i -t jwtproxy

View file

@ -1,2 +1,9 @@
#!/bin/sh
# Ensure dependencies start before the logger
sv start syslog-ng || exit 1
sv start logrotateworker || exit 1
sleep 1
# Start the logger
exec logger -i -t logrotateworker

View file

@ -1,2 +1,9 @@
#!/bin/sh
# Ensure dependencies start before the logger
sv start syslog-ng || exit 1
sv start nginx || exit 1
sleep 1
# Start the logger
exec logger -i -t nginx

View file

@ -1,2 +1,9 @@
#!/bin/sh
# Ensure dependencies start before the logger
sv start syslog-ng || exit 1
sv start notificationworker || exit 1
sleep 1
# Start the logger
exec logger -i -t notificationworker

View file

@ -1,2 +1,9 @@
#!/bin/sh
# Ensure dependencies start before the logger
sv start syslog-ng || exit 1
sv start queuecleanupworker || exit 1
sleep 1
# Start the logger
exec logger -i -t queuecleanupworker

View file

@ -1,2 +1,9 @@
#!/bin/sh
# Ensure dependencies start before the logger
sv start syslog-ng || exit 1
sv start repositoryactioncounter || exit 1
sleep 1
# Start the logger
exec logger -i -t repositoryactioncounter

View file

@ -1,2 +1,9 @@
#!/bin/sh
exec logger -i -t securitynotificationworker
# Ensure dependencies start before the logger
sv start syslog-ng || exit 1
sv start security_notification_worker || exit 1
sleep 1
# Start the logger
exec logger -i -t security_notification_worker

View file

@ -1,2 +1,9 @@
#!/bin/sh
# Ensure dependencies start before the logger
sv start syslog-ng || exit 1
sv start securityworker || exit 1
sleep 1
# Start the logger
exec logger -i -t securityworker

View file

@ -1,2 +1,9 @@
#!/bin/sh
# Ensure dependencies start before the logger
sv start syslog-ng || exit 1
sv start service_key_worker || exit 1
sleep 1
# Start the logger
exec logger -i -t service_key_worker

View file

@ -1,2 +1,9 @@
#!/bin/sh
# Ensure dependencies start before the logger
sv start syslog-ng || exit 1
sv start storagereplication || exit 1
sleep 1
# Start the logger
exec logger -i -t storagereplication