[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Guide to Printers and Printing

Cleaning Up and Starting Over

This procedure completely clears and restarts the spooler system. All jobs currently queued for processing are deleted and must be resubmitted. Use it when you cannot troubleshoot an inoperative spooler. You must be the root user to perform this task.

  1. Stop the qdaemon and associated processes:

    stopsrc -s qdaemon
    
    ps-ef | grep qd
  2. kill -9 PIDNumbers

    where PIDNumbers are PIDs resulting from the ps command. You may find qdfork.

    ps -ef | grep pio
    
    kill -9 PIDNumbers

    where PIDNumbers are PIDs resulting from the ps command. You may find pioformat or pioout.

  3. Clean out the queue and device status directory.

    rm /var/spool/lpd/stat/*_dev_*
    
    rm /var/spool/lpd/stat/s*

    The file /var/spool/lpd/stat/numfile contains an integer representing the last job number that was assigned. If it is sastisfactory that the job numbering scheme restarts, type:

    rm /var/spool/lpd/stat/*
  4. Remove spooled jobs:

    rm /var/spool/lpd/qdir/*
    
    rm /var/spool/qdaemon/*
  5. Restart the qdaemon.

    startsrc -s qdaemon

While issuing the ps commands, you may find a process whose parent process ID (PPID) is 1. If these processes cannot be killed by kill -9, you must reboot the system to delete these processes.

Related Information

For more information about mounting file systems, see "Mounting or Unmounting a File System" in AIX 5L Version 5.2 System Management Guide: Operating System and Devices.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]