1823144 Members
3648 Online
109647 Solutions
New Discussion юеВ

Printing and Syslog

 
SOLVED
Go to solution
Vijaya Kumar_3
Respected Contributor

Printing and Syslog

Hi all,

I am trying to log whatever happening related to my lp daemon. I tried editing /etc/syslog.conf with

lp.*/var/mylog/lp.log

And i did a

kill -HUP `cat /var/run/syslog.pid`

But i am not getting any lp daemon error logs there.

Need advice?

Thanks
Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
4 REPLIES 4
Jeff Schussele
Honored Contributor

Re: Printing and Syslog

Hi Vijay,

LP logs are normally kept in /var/adm/lp/log. Why are you redurecting to another file? It already has it's own log.

Also the system keeps no .pid file for lp AFAIK, so you'd have to determine the pid
ps -ef | grep lp
then kill the PID
kill LP_PID

Then check the log file. Should also log all jobs in there.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Geoff Wild
Honored Contributor
Solution

Re: Printing and Syslog

Also, run lp verbose:

lpsched -v

That way more info will go into the:

/var/adm/lp/lp.log

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Vijaya Kumar_3
Respected Contributor

Re: Printing and Syslog

Thanks Jeff and Geoff.

Jeff: I followed to your procedure to send HUP to syslog. but no luck.

I think i didn't run LP daemon it using verbose mode. I already checked lp log. And there is nothing.

Anyway, Is there a way to log lpsched using syslog? Why my lp.* is not working with syslog as expected?

Thanks again
Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Geoff Wild
Honored Contributor

Re: Printing and Syslog

What if you try:

lpr.*


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.