I have spent the weekend thinking about some problems associated
with the 'include' facility used in various LPRng configuration
files.
a) lpd.conf - historically, you could use
'include file' to read other files
b) printcap - historically, you could use
'include file' to read other files
c) lpd.perms - historically, you could use
'include file' to read other files
The problem is what to do when the files to read are NOT
present.
a) die a horrible death
b) silently skip file
If you are using this facility on a single host system,
then you most likely do not need to worry. The files
will be local to your machine and you can track it down.
Right. SURE you can.
I have just spent a while debugging (via long long distance)
a problem that was caused by somebody forgetting the include
file (printcap) was in /usr/local/etc, not /etc.
The silently skip file is worse. If it is quietly ignored,
then folks get bent out of shape because the file did not get read.
And then there are the fun problems when you try to use
NFS (or other) file systems (I hate NFS mounted file systems).
But some folks want to have this include facility.
So.... I have put it back into the LPRng stuff.
Summary:
If the file is included, it MUST exist and be readable.
If it is not readable, it is a FATAL come to an ABORT level
halt, error.
LPD reads these files on startup, so if you change them, then
you need to do an 'lpc reread' or a 'killall -HUP lpd' or a
pkill -HUP lpd.
The clients AND the lpd server will all read the files.
Be it on your heads. Caveat Emptor. Your mileage may vary. No
Guarantees, No Size, No Shape, No Color. Not fit for anything, and
definately does not come in XXXL.
Patrick ("I wish that I had never put this in...") Powell
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
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.
-----------------------------------------------------------------------------