Yiorgos Adamopoulos ha scritto:


Roberto wrote:
Ok, but what appens to my 'new' logs, after a reboot?
in other words: after apt-get install, I copy /var/log/squid to /ro/var/log/squid. Then I begin to use squid; new logs are written (for instance) in /var/log/squid/access.log .
Since you mount rw, create a directory *outside* the /var hierarchym for example /logs/squid and edit squid.conf to direct the logs under this direcotry. This is the quickest solution.

Voyage is designed to be run on systems that boot from Compact Flash devices and this is the primary reason that it starts with anything on the CF mounted as ro. This is because "be design" CF cards are built for multiple reads and not that many write operations.

Yes, thank you... I will try this solution, too. I guessed that the reason for running read-only was to minimize write operations on the CF, and this is a good think. I tried the solution suggested by Punky, and it works, but on each reboot the old 'access.log' is restored (although I changed voyage.conf accordingly to Punky's suggestions). I think that another solution may be to copy (through scheduled cron jobs, for istance) the contents of /var/log/squid in /ro/var/log/squid: not a perfect solution, of course, but this way I could leave the system in RO state.

_______________________________________________
Voyage-linux mailing list
[email protected]
http://list.voyage.hk/mailman/listinfo/voyage-linux

Reply via email to