]> Zhao Yanbai Git Server - minix.git/commitdiff
Make /var/log writable (in /tmp); start syslogd after that
authorBen Gras <ben@minix3.org>
Tue, 4 Apr 2006 11:52:57 +0000 (11:52 +0000)
committerBen Gras <ben@minix3.org>
Tue, 4 Apr 2006 11:52:57 +0000 (11:52 +0000)
etc/rc.cd
etc/usr/rc

index 01e91a81aa0422150f0e5d1442d71daa5751708f..0680b11ada1f2541a7fe392f9f201799e8500bde 100644 (file)
--- a/etc/rc.cd
+++ b/etc/rc.cd
@@ -1,3 +1,10 @@
 #!/bin/sh
 
 # CD boottime initializations.
+
+PATH=/bin:/usr/bin
+
+# This is so we can get a writable /var/log.
+mkdir /tmp/log
+rm -f /var/log
+ln -s /var/log /tmp/log
index 4189b6bf892628af5e0ddf83ab00e863d0173aae..931a2c7b3778f159304b07043d133caceec5011f 100644 (file)
@@ -106,7 +106,6 @@ start)
 
     echo -n "Starting daemons:"
     daemonize update
-    daemonize syslogd
 
     # Ugly error message when starting cron from CD.
     # (and cron unnecessary then so..)
@@ -114,6 +113,7 @@ start)
     then       daemonize cron
     else       . /etc/rc.cd
     fi
+    daemonize syslogd
     echo .
 
     if [ "$net" ]