--- In "tonalbuilder2002" <>
wrote:
> I need networking and Apache (or at least a primitive web server), so
> I presume this requires a "Full Boot" from a CF or SD card. The boot
> times I see now on my 7300 are just barely tolerable for my product,
> but would become a real problem if the system were to do a lengthy
> file system check upon rebooting after an improper shutdown. (Not to
> mention maybe becoming unusable!)
>
> Would appreciate any thoughts on this, thanks!
>
Mount the rootfs readonly (actually the kernel does this by default)
and then use tmpfs (a ram-based file system) to build your volatile
file systems like /tmp, /dev, and /var.
On every boot, create any volatile entries in those directories from
static files or scripts, or create symlinks from /etc to /tmp. For
example /etc/resolv.conf can be symlinked to /tmp/resolv.conf.
That way you don't have to worry about unclean shutdowns.
If you're really paranoid, use squashfs instead of jffs2. squashfs is
built compressed, and cannot be changed other than rebuilding the
whole filesystem. (Does the TS kernel support squashfs?)
Actually, you don't need anything near a 'full system' to run a basic
webserver. busybox comes with a very basic web server, and lighttpd
does a good job of being a mid-range web server. Neither needs
anything like a full system. My whole server file system, including
PHP4 and lighttpd, probably comes in at just under 16 MB.
--Yan
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|