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 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
|
||||
|
|
Reference in a new issue