~goorzhel/radm

d8fbf13d620909a90a6cd4582726775d4811259d — Antonio Gurgel 2 months ago 7b22db1
runit: Wait for /dev/log

Hacking in service ordering, gotta love it. In fact, this bother was why
I implemented log files -- then I realized I could have it both ways.
1 files changed, 3 insertions(+), 0 deletions(-)

M res/runit/run
M res/runit/run => res/runit/run +3 -0
@@ 4,5 4,8 @@

: ${X:=7}
: ${ARGS:="-f $X"}
: ${WAIT_FOR_SYSLOG:="true"}

while [ "$WAIT_FOR_SYSLOG" ] && [ ! -w /dev/log ]; do sleep 1; done

exec setsid agetty -nl /usr/bin/rstdm -o "${ARGS}" tty$X