Technical data

5.4.11 Shutting Down a Server
Use the pdshutdown command to shut down a server process. Both spoolers
and supervisors disable themselves when this command is issued and then
shut down by the method specified by the value of the when_time option.
The shut down operation is asynchronous. Do not use pdshutdown in scripts
unless the scripts use other commands to monitor the commands progress.
pdshutdown -c server [-w when_time] [-x extended_attribute_string] [-X
attribute_filename] server_name
-w when_time
Specifies how much processing can occur before the server is shut
down. The following arguments are allowed:
now
If the server is a spooler, it is shut down immediately. Jobs not
fully submitted to the supervisors might not complete.
If the server is a supervisor, all jobs are canceled and sent back
to the spooler for processing later.
after-current (default)
If the server is a spooler, it stops submitting new jobs to the
supervisors and shuts down after jobs that have been submitted
are completed.
If the server is a supervisor, it is shut down after all currently
printing jobs are completed.
after-all
If the server is a spooler, it stops accepting new jobs and shuts
down after jobs that are currently printing have completed.
If the server is a supervisor, it stops accepting new jobs and
shuts down after all currently printing jobs are completed.
(Note that this is the same as after-current.)
Note that if any printers are paused and print jobs are waiting,
the server will not shut down.
The following example shows how to use the pdshutdown command to
shutdown a spooler after all currently printing jobs are completed:
#pdshutdown red_spl
5–20 Creating and Managing Servers