Tuesday, August 13, 2013

lpsched dying automatically again and again in Solaris

In case lpsched is dying again and again in Solaris, please check the logs in /var/spoo/lp/logs using below command.
# tail lpsched
received unexpected signal 11: terminating

If lpsched logs shows the above mentioned logs, please follow the below procedure to fix the issue:

## lpshut
Print services stopped.
## cd /var/spool/lp
## ps -ef | grep "lp -c" | awk '{print $2}' > /tmp/testy
## for i in `cat /tmp/testy`
> do
> kill -9 $i
> done
bash: kill: (21483) - No such process
##
## cd /var/spool/lp/tmp
## mv -r localhost/ /var/tmp/localhost.lp.tmp
## cd /var/spool/lp/requests
## mv -r localhost/ /var/tmp/localhost.lp.request 
## /usr/lib/lp/local/lpsched
Print services started.
##
## svcadm enable -r /application/print/server
##
## svcs -a | grep -i print
online 2012 svc:/application/print/ppd-cache-update:default
online 4:03:42 svc:/application/cde-printinfo:default
online 11:30:55 svc:/application/print/ipp-listener:default
online 11:30:55 svc:/application/print/server:default
online 11:30:55 svc:/application/print/rfc1179:default
##

## lpstat -lp lpd_chatpa-prt22
printer lpd_chatpa-prt22 now printing lpd_chatpa-prt22-15. enabled since Thu Apr 25 16:59:32 2013. available.
Form mounted:
Content types: application/octet-stream
Description:
Printer types: unknown
Connection: direct
Interface: /usr/lib/lp/model/netstandard
On fault: write root
After fault: continue
Users allowed:
(all)
Forms allowed:
(none)
Media supported:
(none)
Banner page never printed
Character sets:
(none)
Default pitch:
Default page size:
Default port setting:
Options: dest=3.8.90.37:9100, protocol=tcp
##
##
 

No comments:

Post a Comment