]> Zhao Yanbai Git Server - minix.git/commitdiff
Only fiddle with /var/log on cd
authorBen Gras <ben@minix3.org>
Tue, 4 Apr 2006 13:44:23 +0000 (13:44 +0000)
committerBen Gras <ben@minix3.org>
Tue, 4 Apr 2006 13:44:23 +0000 (13:44 +0000)
etc/usr/rc

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