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:
parent
338f93c3c8
commit
2464e007d8
17 changed files with 132 additions and 13 deletions
|
@ -1,2 +1,9 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t buildlogsarchiver
|
||||
|
||||
# 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
|
||||
|
|
|
@ -1,2 +1,9 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t buildmanager
|
||||
|
||||
# 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
|
||||
|
|
|
@ -1,2 +1,9 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t gcworker
|
||||
|
||||
# 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
|
||||
|
|
|
@ -1,2 +1,9 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t gunicorn_registry
|
||||
|
||||
# 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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,2 +1,9 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t gunicorn_verbs
|
||||
|
||||
# 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
|
||||
|
|
|
@ -1,2 +1,9 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t gunicorn_web
|
||||
|
||||
# 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
|
||||
|
|
|
@ -1,2 +1,9 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t jwtproxy
|
||||
|
||||
# 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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,2 +1,9 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t nginx
|
||||
|
||||
# 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
|
||||
|
|
|
@ -1,2 +1,9 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t notificationworker
|
||||
|
||||
# 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
|
||||
|
|
|
@ -1,2 +1,9 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t queuecleanupworker
|
||||
|
||||
# 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
|
||||
|
|
|
@ -1,2 +1,9 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t repositoryactioncounter
|
||||
|
||||
# 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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,2 +1,9 @@
|
|||
#!/bin/sh
|
||||
exec logger -i -t storagereplication
|
||||
|
||||
# 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
|
||||
|
|
Reference in a new issue