SUMMARY: print services keep dying

Irene Kam (kami@verdi.iisd.sra.com)
Fri, 05 Dec 1997 14:43:23 -0500

Hello!

My original question:

> I have a Ultra-1 running Solaris 2.5. For some reason
> the print daemon just keep dying. When I try to re-start it using
> '/etc/init.d/lp start', it will say 'print services started'. However,
> the lpsched daemon will die right away.
>
> Anybody has any idea why this is happening?

Following are some helpful suggestions. I try suggestion #2 and
the machine went back to normal. Thanks to:

K. Ravi
Jim Harmon
Matthew Stier
Richard Roberto

Helpful suggestions:

-------------------------------
1)
Have you checked your messages and syslog files for error messages?

If not, the next time you start the program, redirect STDERR to the
console so you can see all the error messages as they get generated.

/etc/init.d/lp start 2>&1 (I think)

--------------------------------
2)
Look for corrupt lp request files in
/var/spool/lp/requests/<machine_name>
and /var/spool/lp/tmp/<machine_name>. Some of the entries in the file
(hostname, username, file to be printed etc.) may be mangled. Remove
these
files and start lpsched.

----------------------------------
3)
Check to see that /var/spool/lp/temp is a symlink to
/var/spool/lp/tmp/`hostname` for starters. If it is, then try
(after shutting down print services) removing anything in the
/var/spool/lp/fifos directory and perhaps also anything under
/var/spool/lp/requests, then restarting the spooler. Are there any
errors in any of the logs?

-----------------------------------
4)
The message 'Print services started' is printed by the /etc/init.d/lp
script, not any of the lp processes.

Have you checked the /var/lp/logs files for any hints?

Do you syslog the 'lpr' facility. Have you checked those logs?

Do you have the latest LP system patch installed?

------------------------------------

-- 

^ ^ @ @ ___o00o O o00o________________________________ __|__|_ |__|__|__|__|__|__|__|__|__|__|_| ___|_ () |___|_ Irene Kam _|___|____|__| _|___|__ |__|_ kami@verdi.iisd.sra.com _| ___|___|___|___|____|_ Work :(703) 227-8389 _|_| __|___|___|___|___|___|___|___|___|___|___|___|__| |___|___|___|___|___|___|___|___|___|___|___|____|