System Administration Guide: Printing

ProcedureHow to Accept or Reject Print Requests for a Printer

  1. Log in as superuser, lp, or assume an equivalent role on the print server.

  2. Stop accepting print requests for the printer.


    # reject [-r "reason"] printer-name
    
    -r "reason"

    Provides users with a reason why the printer is rejecting print requests. The reason is stored and displayed whenever a user checks on the status of the printer by using the lpstat -p command.

    printer-name

    Specifies the name of the printer that will stop accepting print requests.

    The queued requests continue printing as long as the printer is enabled. For instructions on disabling a printer so that it stops printing, see How to Enable or Disable a Printer.

  3. Start accepting print requests for the printer.


    # accept printer-name
    
  4. Check that the status of the printer to see whether it is accepting or rejecting print requests.


    $ lpstat -p printer-name
    

Example 8–6 Accepting or Rejecting Print Requests for a Printer

The following example shows how to stop the printer luna from accepting print requests.


# reject -r "luna is down for repairs" luna
destination "luna" will no longer accept requests

The following example shows how to set the printer luna to accept print requests.


# accept luna
destination "luna" now accepting requests