[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /run vs. /lib/run



On Wed, Dec 21, 2005 at 04:14:14PM +0100, Petter Reinholdtsen wrote:
> Sorry for the confusion.  bootchartd is a shell script collecting
> information into a tmpfs area during boot, and packing it together in
> /var/log/ when the boot is over.  It have no other way to store the
> stats before other file systems are available but to put it in a tmpfs
> area.

Sure there are other ways: you can store it in a variable, eg:

while :; do
   ps aux; netstat
   sleep 1
done | (
   out="X"
   while read -r x; do
     out="$(printf "%s%s\nX" "${out%X}" "$x")"
     if [ -e dump-output ]; then
       echo -n "${out%X}" >>dump-output
       out=""
     else
       echo "Buffer size: $(echo $out | wc -c)"
     fi
   done
)

> > Sure, those were mentioned above (/ local, /var an NFS mount, or if
> > /var is a tmpfs or similar, / and /var local).
> In LTSP, / is a readonly NFS mount (and /var is on /, also readonly).

Uh, readonly /var isn't a supported configuration... Assuming you symlink
/var/lib/dpkg elsewhere, and don't fill up /var/cache/apt, it doesn't
seem like it'd need to be either?

Cheers,
aj

Attachment: signature.asc
Description: Digital signature


Reply to: