On Mon, 9 Oct 2000 [EMAIL PROTECTED] wrote:
> > could critique my printcap. But in the course of this,
> > I noticed a bunch of errors messages which seem to indicate
> > bug to me. A number of times a temp file
> >
> > /var/spool/lpd/<queue name>/temp<random string>
> >
> > is tried to be renamed to /var/log/lp-errs. The reason
> > for failure is permission denied. The file in fact already
> > exists. To me, it makes sense to try and append messages
> > to this file, but not to rename the file to this final
> > lp-errs file. Anyway, printcap follows .sig.
> ARGH!!! ARGH!!!
Is this where I say oops? :-)
> OK, here is the problem. The log file truncation code
> a) creates a temp file.
> b) copies the END of the log file to the temp file
> c) renames the temp file as the log file.
>
> Why? Because I did not want to truncate and
> then rewrite the log file and then remove the
> temp file.
>
> But you have, for some reason that escapes me :-)
> have your log files in /var/log/lpd/xxx... and the rename
> fails across file systems.
I just started with what Debian provided me with, but if I
was supposed to put those log files somewhere else, maybe
Craig should add a note somewhere. Or maybe he did and I didn't
find it.
Gord
Matter Realisations http://www.materialisations.com/
Gordon Haverland, B.Sc. M.Eng. President
101 9504 182 St. NW Edmonton, AB, CA T5T 3A7
780/481-8019 ghaverla @ freenet.edmonton.ab.ca
780/993-1274 (cell)
-----------------------------------------------------------------------------
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------