]> Zhao Yanbai Git Server - minix.git/commitdiff
rc script needs to open its own stdin, stdout and stderr
authorBen Gras <ben@minix3.org>
Thu, 11 Dec 2008 14:50:56 +0000 (14:50 +0000)
committerBen Gras <ben@minix3.org>
Thu, 11 Dec 2008 14:50:56 +0000 (14:50 +0000)
etc/rc

diff --git a/etc/rc b/etc/rc
index 763c680fe58b1173e19e0a3a62245689d76b72db..e73217e19c9738b4f86d8586567375550c3a1e3d 100755 (executable)
--- a/etc/rc
+++ b/etc/rc
@@ -1,5 +1,9 @@
 # /etc/rc - System startup script run by init before going multiuser.
 
+exec >/dev/log
+exec 2>/dev/log
+exec </dev/null
+
 umask 022
 TERM="${TERM-minix}"
 PATH=/usr/local/bin:/bin:/usr/bin:/usr/sbin