System Administration Guide

How to Unhang the LP Print Service

  1. Log in as superuser or lp.

  2. 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.

  3. 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.

  4. 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.

  5. As a last resort, terminate the processes abruptly.


    # kill -9 103 134
    

    All the lp processes are terminated.

  6. Remove the SCHEDLOCK file so you can restart the LP print service.


    # rm /usr/spool/lp/SCHEDLOCK
    
  7. 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".