6253 F_GETLK doesn't always return lock owner
[illumos-gate.git] / usr / src / man / man1m / lpsched.1m
blobad9a1c807271728b1a8a0ac935260d4da2958608
1 '\" te
2 .\"  Copyright 1989 AT&T  Copyright (c) 2004 Sun Microsystems, Inc.  All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH LPSCHED 1M "Sep 3, 2004"
7 .SH NAME
8 lpsched \- start the LP print service
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBlpsched\fR [\fB-f\fR \fInum_filters\fR] [\fB-n\fR \fInum_notifiers\fR] [\fB-p\fR \fIfd_limit\fR]
13      [\fB-r\fR \fIreserved_fds\fR]
14 .fi
16 .SH DESCRIPTION
17 .sp
18 .LP
19 The  \fBlpsched\fR command  starts or restarts the  \fBLP\fR print service.
20 .sp
21 .LP
22 The  \fBlpshut\fR command stops the  \fBLP\fR print service.  Printers that are
23 restarted using \fBlpsched\fR reprint (in their entirety) print requests that
24 were stopped by  \fBlpshut\fR. See  \fBlpshut\fR(1M).
25 .sp
26 .LP
27 It is recommended that you start  and stop the LP print service using
28 \fBsvcadm\fR(1M).  See \fBNOTES\fR.
29 .SH OPTIONS
30 .sp
31 .LP
32 The following options are supported:
33 .sp
34 .ne 2
35 .na
36 \fB\fB-f\fR\fI num_filters\fR\fR
37 .ad
38 .RS 20n
39 Specifies the number of concurrent slow filters that may be run on a print
40 server. A default value of \fB1\fR is used if none is specified. Depending on
41 server configuration, a value of  \fB1\fR may cause printers to remain idle
42 while there are jobs queued to them.
43 .RE
45 .sp
46 .ne 2
47 .na
48 \fB\fB-n\fR\fI num_notifiers\fR\fR
49 .ad
50 .RS 20n
51 Specifies the number of concurrent notification processes that can run on a
52 print server. A default value of  \fB1\fR is used when none is specified.
53 .RE
55 .sp
56 .ne 2
57 .na
58 \fB\fB-p\fR\fI fd_limit\fR\fR
59 .ad
60 .RS 20n
61 Specifies the file descriptor resource limit for the  \fBlpsched\fR process. A
62 default value of  \fB4096\fR is used if none is specified. On extremely large
63 and active print servers, it may be necessary to increase this value.
64 .RE
66 .sp
67 .ne 2
68 .na
69 \fB\fB-r\fR\fI reserved_fds\fR\fR
70 .ad
71 .RS 20n
72 Specifies the number of file descriptors that the scheduler reserves for
73 internal communications under heavy load. A default value of  \fB2\fR is used
74 when none is specified. It should not be necessary to modify this value unless
75 instructed to do so when troubleshooting problems under high load.
76 .RE
78 .SH EXIT STATUS
79 .sp
80 .LP
81 The following exit values are returned:
82 .sp
83 .ne 2
84 .na
85 \fB\fB0\fR\fR
86 .ad
87 .RS 12n
88 Successful completion.
89 .RE
91 .sp
92 .ne 2
93 .na
94 \fBnon-zero\fR
95 .ad
96 .RS 12n
97 An error occurred.
98 .RE
100 .SH FILES
102 .ne 2
104 \fB\fB/var/spool/lp/*\fR\fR
106 .RS 19n
107 \fBLP\fR print queue.
110 .SH SEE ALSO
113 \fBlp\fR(1), \fBsvcs\fR(1), \fBlpstat\fR(1), \fBlpadmin\fR(1M),
114 \fBlpmove\fR(1M), \fBlpshut\fR(1M), \fBsvcadm\fR(1M), \fBattributes\fR(5),
115 \fBsmf\fR(5)
118 \fI\fR
119 .SH NOTES
122 The \fBlpsched\fR service is managed by the service management facility,
123 \fBsmf\fR(5), under the service identifier:
125 .in +2
127 svc:/application/print/server
129 .in -2
134 Administrative actions on this service, such as enabling, disabling, or
135 requesting restart, can be performed using \fBsvcadm\fR(1M). The service's
136 status can be queried using the \fBsvcs\fR(1) command.