summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-03 15:30:52 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-03 15:30:52 (EDT)
commite21232fe22e29717e48cabe0bd9e3337d36afcec (patch)
treead8258f73096e43f11bbd118d807979f12f110b1
parent2e4f39f0b6d778eea563bbc44f7ef255ec569952 (diff)
/etc/init.d/rc: Run logger after input loop.
If there was no output from the service scripts after syslogd was started, the buffer wouldn't be sent to syslogd.
-rwxr-xr-xsrc.etc/init.d/rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src.etc/init.d/rc b/src.etc/init.d/rc
index 6747dd0..4e98c08 100755
--- a/src.etc/init.d/rc
+++ b/src.etc/init.d/rc
@@ -25,6 +25,9 @@ log()
exec ${logger}
fi
done
+ if [ -f /var/run/syslogd.pid ]; then
+ printf '%s' "${buf}" | ${logger}
+ fi
}
level=${0#*/rc}