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
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