On Wed, 22 Oct 2003 12:34:51 -0400
Kelly Brown <[EMAIL PROTECTED]> wrote:

> I'm trying to configure logging for LPRng before I deploy it
> throughout our organization and I could use some help.
> 
> First of all I would like to completely turn off accounting.  How do I
> do that?  I tried la@ in the lpd.conf but that didn't do it.  I tried
> ar=FALSE in the printcap file and that also didn't work.

The following printcap entries:

        :af=
        :as=
        :ae=

will nullify any accounting file entries.  You may also want to add 
        @accounting
to your ifhp options listing for your printers, to tell ifhp not to 
bother trying to get page counts.  Or maybe you want to leave them in
there, so you have some record of how many pages are printed out of a 
given printer (may come in handy for maintenance purposes).

> Secondly I would like to log everything to syslog and to one log file
> in the spool directory.  Currently, it seems to be logging to lpq.0,
> status, and status.pr within each spool directory.  I want one central
> place for everything (syslog) and then one file for each spool.  Can I
> do this.

lpq.[0123] are cached lpq output files.  They are not log files.

status contains output from the printer filter.  status.<pr> contains 
some logging information regarding jobs being accepted into and removed
from the given queue.

You can define log files in the printcap using :lf= to save the same info
as status.<pr> (and a whole lot more).  There are options to keep status
and status.<pr> from growing too large.

As far as I know, there are no syslog hooks for logging from LPRng.  No 
reason you couldn't rotate those logs with your usual syslog log rotation 
mechanism, though.

-- 
============================================================================
   John Perkins                   |   University of Wisconsin-Madison
   Associate Researcher           |   Department of Computer Science
   [EMAIL PROTECTED]              |   1210 W. Dayton St.
   608-262-0438/608-262-9997 FAX  |   Madison, WI  53706-1685
============================================================================




-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------

Reply via email to