Log in as superuser or lp.
Stop the LP print service.
# lpshut |
If this command hangs, press Control-c and proceed to the next step. If this command succeeds, skip to step 4.
Identify the LP process IDs.
# ps -el | grep lp 134 term/a 0:01 lpsched # |
Use the process ID numbers (PIDs) from the first column in place of the pid variables in the next step.
Stop the LP processes by using the kill -15 command.
# kill -15 103 134 |
This should stop the LP print service processes. If the processes do not stop, as a last resort go to step 5.
As a last resort, terminate the processes abruptly.
# kill -9 103 134 |
All the lp processes are terminated.
Remove the SCHEDLOCK file so you can restart the LP print service.
# rm /usr/spool/lp/SCHEDLOCK |
Restart the LP print service.
# /usr/lib/lp/lpsched |
The LP print service should restart. If you are having trouble restarting the scheduler, see "How to Restart the Print Scheduler".