> From [EMAIL PROTECTED] Fri Jul 28 11:00:43 2000
> Date: Fri, 28 Jul 2000 12:26:29 -0400
> From: "William R. Knox" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: Problem with checkpc
>
> In LPRng-3.6.22, I still have a problem with mildly over-aggressive
> behavior in checkpc. Specifically, I have a character special file in
> many queues (a null device) which I use in conjunction with Netatalk
> filtering and printing. When I run checkpc -A [time] -r -Pqueuename, it
> removes the null device from inside the queue.
>
> A check in checkpc looks to see if a file is zero length and will then
> remove it if it is older than the time set in the A flag, but doesn't
> confirm that it is a regular file. The following simple patch will fix
> that, and has been checked on Solaris 2.6 (and I at least examined the
> man page for stat on Linux and confirmed that it has the s_IFREG and
> S_IFMT constants defined):
>

I have also got email from somebody using 'netatalk' to communicate
with their printers and they pointed out that I am removing the
configuration files from the directory also.

So I have modified the behaviour to only remove temp files and
job files created by LPRng and ifhp.  If you have other files,
then you will need to write your own 'cron cleanup'.  I think this
is a pretty good solution as it now allows you to put just about
anything in there...  Watch out for 'checkpc -f' still - it will
brutally change permissions still.

Patrick Powell                 Astart Technologies,
[EMAIL PROTECTED]            9475 Chesapeake Drive, Suite D,
Network and System             San Diego, CA 92123
  Consulting                   858-874-6543 FAX 858-279-8424 
LPRng - Print Spooler (http://www.astart.com)

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