]> Zhao Yanbai Git Server - minix.git/commitdiff
Fixes for /var/log
authorBen Gras <ben@minix3.org>
Tue, 4 Apr 2006 13:31:56 +0000 (13:31 +0000)
committerBen Gras <ben@minix3.org>
Tue, 4 Apr 2006 13:31:56 +0000 (13:31 +0000)
etc/usr/rc

index 931a2c7b3778f159304b07043d133caceec5011f..bf2eaa0e9c488f6b9d56f44b63433ecc1c9c16b1 100644 (file)
@@ -109,9 +109,13 @@ start)
 
     # Ugly error message when starting cron from CD.
     # (and cron unnecessary then so..)
+    rm -f /var/log || true
     if [ ! -f /CD ]
-    then       daemonize cron
-    else       . /etc/rc.cd
+    then       ln -s /usr/log /var/log || true
+               daemonize cron
+    else       mkdir /tmp/log
+               ln -s /tmp/log /var/log || true
+               . /etc/rc.cd
     fi
     daemonize syslogd
     echo .