5 ../../dinit -d sd -u -p socket -q \
9 # give time for socket to open
10 while [ ! -e socket ]; do
14 # wait until parent (and therefore 'basic') has fully started
15 ../../dinitctl --quiet -p socket start parent
17 sleep 0.1 # time for file to be written
20 if [ -e basic-ran ]; then
21 if [ "$(cat basic-ran)" = "ran" ]; then
26 if [ $STATUS != PASS ]; then
27 ../../dinitctl --quiet -p socket shutdown
34 ../../dinitctl --quiet -p socket restart basic
35 sleep .1 # time for file write
36 if [ -e basic-ran ]; then
37 if [ "$(cat basic-ran)" = "ran" ]; then
42 ../../dinitctl --quiet -p socket shutdown
45 if [ $STATUS = PASS ]; then exit 0; fi