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

Bug#439997: checkpc run by cron.daily cannot be disabled



Package: lprng
Version: 3.8.28dfsg.1-1.1

I am running a Debian system that does not need printer support. For this
reason I have disabled printer-related things in the Linux kernel (e.g.
parallel printer support, aka the "lp" module) and generally tried to
remove as many unneeded printer-related Debian packages as possible.
Package dependencies force me to keep lprng installed, though.

The problem is that checkpc, which is run daily by /etc/cron.daily/lprng,
fails for some reason (possibly the missing "lp" kernel module?) with the
following error:

 Warning - lp: cannot open lp device '/dev/lp0' - No such device or address

This message is placed into the system logs and then gets picked up by the
logcheck utility, thus generating one unnecessary email per day.

For the moment I have added a local logcheck rule that ignores the checkpc
error message. I feel, however, that it would be cleaner if I could
somehow disable the automatic checking performed by /etc/cron.daily/lprng.
This would also have the benefit that the system logs are not "filled"
with unnecessary messages.

This, then, is my request: Would it be possible to add a feature to the
lprng package that disables /etc/cron.daily/lprng? Possible solutions
could be (I don't know if these violate any Debian policies):
* ask a debconf question when the package is installed that prevents
/etc/cron.daily/lprng from being installed
* add an entry to /etc/default/lprng that is evaluated by the cron script


Thanks
Patrick






Reply to: