1502 Remove conversion cruft from manpages
[unleashed.git] / usr / src / man / man1m / inetd.1m
blobc51a4aec29d8bc058868143cb07530b542845e23
1 '\" te
2 .\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved
3 .\" Copyright 1989 AT&T
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH INETD 1M "Jul 5, 2007"
8 .SH NAME
9 inetd \- Solaris Management Facility delegated restarter for inet services
10 .SH SYNOPSIS
11 .LP
12 .nf
13 \fBinetd\fR  [\fIconfiguration-file\fR] start |  stop |  refresh
14 .fi
16 .LP
17 .nf
18  svc:/network/inetd:default
19 .fi
21 .SH DESCRIPTION
22 .sp
23 .LP
24 \fBinetd\fR is the delegated restarter for internet services for the Service
25 Management Facility (SMF). Its basic responsibilities are to manage service
26 states in response to administrative requests, system failures, and service
27 failures; and, when appropriate, to listen for network requests for services.
28 .sp
29 .LP
30 Services are no longer managed by editing the inetd configuration file,
31 \fBinetd.conf\fR(4). Instead, you use \fBinetconv\fR(1M) to convert the
32 configuration file content into SMF format services, then manage these services
33 using \fBinetadm\fR(1M) and \fBsvcadm\fR(1M). Once a service has been converted
34 by \fBinetconv\fR, any changes to the legacy data in the \fBinetd\fR config
35 file will not become effective. However, \fBinetd\fR does alert the
36 administrator when it notices change in the configuration file. See the start
37 description under the "inetd Methods" section for further information.
38 .sp
39 .LP
40 Also note that the current \fBinetd\fR cannot be run from outside the SMF. This
41 means it cannot be run from the command line, as was supported by the previous
42 \fBinetd\fR. If you attempt to do this, a message is sent to stderr displaying
43 mappings between the options supported by the previous \fBinetd\fR to the SMF
44 version of \fBinetd\fR.
45 .sp
46 .LP
47 \fBinetd\fR listens for connections on behalf of all services that are in
48 either the \fBonline\fR or \fBdegraded\fR state. A service enters one of these
49 states when the service is enabled by the user and \fBinetd\fR manages to
50 listen on its behalf. A listen attempt can fail if another server (whether
51 standalone or a third-party internet service) is already listening on the same
52 port. When this occurs, \fBinetd\fR logs this condition and continues trying to
53 bind to the port at configured intervals a configured number of times. See the
54 property \fBbind_fail_max\fR under "Service Properties," below, for more
55 details.
56 .sp
57 .LP
58 The configuration of all \fBinetd\fR's managed SMF services is read when it is
59 started. It is reread when \fBinetd\fR is refreshed, which occurs in response
60 to an SMF request, or when it receives a SIGHUP signal. See the \fBrefresh\fR
61 description under "inetd Methods" for the behavior on configuration refresh.
62 .sp
63 .LP
64 You can use the \fBinetadm\fR(1M) or \fBsvccfg\fR(1M) utilities to make
65 configuration changes to Internet services within the SMF repository.
66 \fBinetadm\fR has the advantage over \fBsvccfg\fR in that it provides an
67 Internet/RPC service context.
68 .SS "Service States"
69 .sp
70 .LP
71 As part of its service management duties, \fBinetd\fR implements a state
72 machine for each of its managed services. The states in this machine are made
73 up of the \fBsmf\fR(5) set of states. The semantics of these states are as
74 follows:
75 .sp
76 .ne 2
77 .na
78 \fB\fBuninitialized\fR\fR
79 .ad
80 .sp .6
81 .RS 4n
82 \fBinetd\fR has yet to process this service.
83 .RE
85 .sp
86 .ne 2
87 .na
88 \fB\fBonline\fR\fR
89 .ad
90 .sp .6
91 .RS 4n
92 The service is handling new network requests and might have existing
93 connections active.
94 .RE
96 .sp
97 .ne 2
98 .na
99 \fB\fBdegraded\fR\fR
101 .sp .6
102 .RS 4n
103 The service has entered this state because it was able to listen and process
104 requests for some, but not all, of the protocols specified for the service,
105 having exhausted its listen retries. Existing network connections might be
106 active.
110 .ne 2
112 \fB\fBoffline\fR\fR
114 .sp .6
115 .RS 4n
116 Connections might be active, but no new requests are being handled. This is a
117 transient state. A service might be \fBoffline\fR for any of the following
118 reasons:
119 .RS +4
121 .ie t \(bu
122 .el o
123 The service's dependencies are unmet. When its dependencies become met the
124 service's state will be re-evaluated.
126 .RS +4
128 .ie t \(bu
129 .el o
130 The service has exceeded its configured connection rate limit,
131 \fBmax_con_rate\fR. The service's state is re-evaluated when its connection
132 offline timer, \fBcon_rate_offline\fR, expires.
134 .RS +4
136 .ie t \(bu
137 .el o
138 The service has reached its allowed number of active connections,
139 \fBmax_copies\fR. The service's state is re-evaluated when the number of active
140 connections drops below \fBmax_copies\fR.
142 .RS +4
144 .ie t \(bu
145 .el o
146 \fBinetd\fR failed to listen on behalf of the service on all its protocols. As
147 mentioned above, \fBinetd\fR retries up to a configured maximum number of
148 times, at configured intervals.The service's state is re-evaluated when either
149 a listen attempt is successful or the retry limit is reached.
154 .ne 2
156 \fB\fBdisabled\fR\fR
158 .sp .6
159 .RS 4n
160 The service has been turned off by an administrator, is not accepting new
161 connections, and has none active. Administrator intervention is required to
162 exit this state.
166 .ne 2
168 \fB\fBmaintenance\fR\fR
170 .sp .6
171 .RS 4n
172 A service is in this state because it is either malfunctioning and needs
173 adminstrator attention or because an administrator has requested it.
175 Events constituting malfunctioning include: \fBinetd\fR's inability to listen
176 on behalf on any of the service's protocols before exceeding the service's bind
177 retry limit, non-start methods returning with non-success return values, and
178 the service exceeding its failure rate.
180 You request the maintenance state to perform maintenance on the service, such
181 as applying a patch. No new requests are handled in this state, but existing
182 connections might be active. Administrator intervention is required to exit
183 this state.
188 Use \fBinetadm\fR(1M) to obtain the current state of a managed service.
189 .SS "Service Methods"
192 As part of certain state transitions \fBinetd\fR will execute, if supplied, one
193 of a set of methods provided by the service. The set of supported methods are:
195 .ne 2
197 \fB\fBinetd_start\fR\fR
199 .sp .6
200 .RS 4n
201 Executed to handle a request for an \fBonline\fR or \fBdegraded\fR service.
202 Since there is no separate state to distinguish a service with active
203 connections, this method is not executed as part of a state transition.
207 .ne 2
209 \fB\fBinetd_offline\fR\fR
211 .sp .6
212 .RS 4n
213 Executed when a service is taken from the \fBonline\fR or \fBdegraded\fR state
214 to the \fBoffline\fR state. For a \fBwait\fR-type service that at the time of
215 execution is performing its own listening, this method should result in it
216 ceasing listening. This method will be executed before the \fBdisable\fR method
217 in the case an \fBonline\fR/\fBdegraded\fR service is disabled. This method is
218 required to be implemented for a \fBwait\fR-type service.
222 .ne 2
224 \fB\fBinetd_online\fR\fR
226 .sp .6
227 .RS 4n
228 Executed when a service transitions from the \fBoffline\fR state to the
229 \fBonline\fR state. This method allows a service author to carry out some
230 preparation prior to a service starting to handle requests.
234 .ne 2
236 \fB\fBinetd_disable\fR\fR
238 .sp .6
239 .RS 4n
240 Executed when a service transitions from the \fBoffline\fR state to the
241 \fBdisabled\fR state. It should result in any active connections for a service
242 being terminated.
246 .ne 2
248 \fB\fBinetd_refresh\fR\fR
250 .sp .6
251 .RS 4n
252 Executed when both of the following conditions are met:
253 .RS +4
255 .ie t \(bu
256 .el o
257 \fBinetd\fR is refreshed, by means of the framework or a SIGHUP, or a request
258 comes in to refresh the service, and
260 .RS +4
262 .ie t \(bu
263 .el o
264 the service is currently in the \fBonline\fR state and there are no
265 configuration changes that would result in the service needing to be taken
266 \fBoffline\fR and brought back again.
272 The only compulsory method is the \fBinetd_start\fR method. In the absence of
273 any of the others, \fBinetd\fR runs no method but behaves as if one was run
274 successfully.
275 .SS "Service Properties"
278 Configuration for SMF-managed services is stored in the SMF repository. The
279 configuration is made up of the basic configuration of a service, the
280 configuration for each of the service's methods, and the default configuration
281 applicable to all \fBinetd\fR-managed services.
284 For details on viewing and modifying the configuration of a service and the
285 defaults, refer to \fBinetadm\fR(1M).
288 The basic configuration of a service is stored in a property group named
289 \fBinetd\fR in the service. The properties comprising the basic configuration
290 are as follows:
292 .ne 2
294 \fB\fBbind_addr\fR\fR
296 .sp .6
297 .RS 4n
298 The address of the network interface to which the service should be bound. An
299 empty string value causes the service to accept connections on any network
300 interface.
304 .ne 2
306 \fB\fBbind_fail_interval\fR\fR
308 .sp .6
309 .RS 4n
310 The time interval in seconds between a failed bind attempt and a retry. The
311 values \fB0\fR and \fB-1\fR specify that no retries are attempted and the first
312 failure is handled the same as exceeding \fBbind_fail_max\fR.
316 .ne 2
318 \fB\fBbind_fail_max\fR\fR
320 .sp .6
321 .RS 4n
322 The maximum number of times \fBinetd\fR retries binding to a service's
323 associated port before giving up. The value \fB-1\fR specifies that no retry
324 limit is imposed. If none of the service's protocols were bound to before any
325 imposed limit is reached, the service goes to the \fBmaintenance\fR state;
326 otherwise, if not all of the protocols were bound to, the service goes to the
327 \fBdegraded\fR state.
331 .ne 2
333 \fB\fBcon_rate_offline\fR\fR
335 .sp .6
336 .RS 4n
337 The time in seconds a service will remain offline if it exceeds its configured
338 maximum connection rate, \fBmax_con_rate\fR. The values \fB0\fR and \fB-1\fR
339 specify that connection rate limiting is disabled.
343 .ne 2
345 \fB\fBconnection_backlog\fR\fR
347 .sp .6
348 .RS 4n
349 The backlog queue size. Represents a limit on the number of incoming client
350 requests that can be queued at the listening endpoints for servers.
354 .ne 2
356 \fB\fBendpoint_type\fR\fR
358 .sp .6
359 .RS 4n
360 The type of the socket used by the service or the value \fBtli\fR to signify a
361 TLI-based service. Valid socket type values are: \fBstream\fR, \fBdgram\fR,
362 \fBraw\fR, \fBseqpacket\fR.
366 .ne 2
368 \fB\fBfailrate_cnt\fR\fR
370 .sp .6
371 .RS 4n
372 The count portion of the service's failure rate limit. The failure rate limit
373 applies to \fBwait\fR-type services and is reached when \fIcount\fR instances
374 of the service are started within a given time. Exceeding the rate results in
375 the service being transitioned to the \fBmaintenance\fR state. This is
376 different from the behavior of the previous \fBinetd\fR, which continued to
377 retry every 10 minutes, indefinitely. The \fBfailrate_cnt\fR check accounts for
378 badly behaving servers that fail before consuming the service request and which
379 would otherwise be continually restarted, taxing system resources. Failure rate
380 is equivalent to the \fB-r\fR option of the previous \fBinetd\fR. The values
381 \fB0\fR and \fB-1\fR specify that this feature is disabled.
385 .ne 2
387 \fB\fBfailrate_interval\fR\fR
389 .sp .6
390 .RS 4n
391 The time portion in seconds of the service's failure rate. The values \fB0\fR
392 and \fB-1\fR specify that the failure rate limit feature is disabled.
396 .ne 2
398 \fB\fBinherit_env\fR\fR
400 .sp .6
401 .RS 4n
402 If true, pass \fBinetd\fR's environment on to the service's start method.
403 Regardless of this setting, \fBinetd\fR will set the variables \fBSMF_FMRI\fR,
404 \fBSMF_METHOD\fR, and \fBSMF_RESTARTER\fR in the start method's environment, as
405 well as any environment variables set in the method context. These variables
406 are described in \fBsmf_method\fR(5).
410 .ne 2
412 \fB\fBisrpc\fR\fR
414 .sp .6
415 .RS 4n
416 If true, this is an RPC service.
420 .ne 2
422 \fB\fBmax_con_rate\fR\fR
424 .sp .6
425 .RS 4n
426 The maximum allowed connection rate, in connections per second, for a
427 \fBnowait\fR-type service. The values \fB0\fR and \fB-1\fR specify that that
428 connection rate limiting is disabled.
432 .ne 2
434 \fB\fBmax_copies\fR\fR
436 .sp .6
437 .RS 4n
438 The maximum number of copies of a \fBnowait\fR service that can run
439 concurrently. The values \fB0\fR and \fB-1\fR specify that copies limiting is
440 disabled.
444 .ne 2
446 \fB\fBname\fR\fR
448 .sp .6
449 .RS 4n
450 Can be set to one of the following values:
451 .RS +4
453 .ie t \(bu
454 .el o
455 a service name understood by \fBgetservbyname\fR(3SOCKET);
457 .RS +4
459 .ie t \(bu
460 .el o
461 if \fBisrpc\fR is set to \fBtrue\fR, a service name understood by
462 \fBgetrpcbyname\fR(3NSL);
464 .RS +4
466 .ie t \(bu
467 .el o
468 if \fBisrpc\fR is set to \fBtrue\fR, a valid RPC program number.
473 .ne 2
475 \fB\fBproto\fR\fR
477 .sp .6
478 .RS 4n
479 In the case of socket-based services, this is a list of protocols supported by
480 the service. Valid protocols are: \fBtcp\fR, \fBtcp6\fR, \fBtcp6only\fR,
481 \fBudp\fR, \fBudp6\fR, and \fBudp6only\fR. In the case of TLI services, this is
482 a list of netids recognized by \fBgetnetconfigent\fR(3NSL) supported by the
483 service, plus the values \fBtcp6only\fR and \fBudp6only\fR. RPC/TLI services
484 also support nettypes in this list, and \fBinetd\fR first tries to interpret
485 the list member as a nettype for these service types. The values \fBtcp6only\fR
486 and \fBudp6only\fR are new to \fBinetd\fR; these values request that
487 \fBinetd\fR listen only for and pass on true \fBIPv6\fR requests (not IPv4
488 mapped ones). See "Configuring Protocols for Sockets-Based Services," below.
492 .ne 2
494 \fB\fBrpc_low_version\fR\fR
496 .sp .6
497 .RS 4n
498 Lowest supported RPC version. Required when \fBisrpc\fR is set to \fBtrue\fR.
502 .ne 2
504 \fB\fBrpc_high_version\fR\fR
506 .sp .6
507 .RS 4n
508 Highest supported RPC version. Required when \fBisrpc\fR is set to \fBtrue\fR.
512 .ne 2
514 \fB\fBtcp_trace\fR\fR
516 .sp .6
517 .RS 4n
518 If true, and this is a \fBnowait\fR-type service, \fBinetd\fR logs the client's
519 IP address and TCP port number, along with the name of the service, for each
520 incoming connection, using the \fBsyslog\fR(3C) facility. \fBinetd\fR uses the
521 \fBsyslog\fR facility \fBcode\fR daemon and \fBnotice\fR priority level. See
522 \fBsyslog.conf\fR(4) for a description of \fBsyslog\fR codes and severity
523 levels. This logging is separate from the logging done by the TCP wrappers
524 facility.
526 \fBtcp_trace\fR is equivalent to the previous \fBinetd\fR's \fB-t\fR option
527 (and the \fB/etc/default/inetd\fR property \fBENABLE_CONNECTION_LOGGING\fR).
531 .ne 2
533 \fB\fBtcp_wrappers\fR\fR
535 .sp .6
536 .RS 4n
537 If \fBtrue\fR, enable TCP wrappers access control. This applies only to
538 services with \fBendpoint_type\fR set to \fBstreams\fR and \fBwait\fR set to
539 \fBfalse\fR. The \fBsyslog\fR facility \fBcode\fR daemon is used to log allowed
540 connections (using the \fBnotice\fR severity level) and denied traffic (using
541 the \fBwarning\fR severity level). See \fBsyslog.conf\fR(4) for a description
542 of \fBsyslog\fR codes and severity levels. The stability level of the TCP
543 wrappers facility and its configuration files is External. As the TCP wrappers
544 facility is not controlled by Sun, intra-release incompatibilities are not
545 uncommon. See \fBattributes\fR(5).
547 For more information about configuring TCP wrappers, you can refer to the
548 \fBtcpd(1M)\fR and \fBhosts_access(4)\fR man pages, which are delivered as part
549 of the Solaris operating system at \fB/usr/sfw/man\fR. These pages are not part
550 of the standard Solaris man pages, available at \fB/usr/man\fR.
552 \fBtcp_wrappers\fR is equivalent to the previous inetd's
553 \fB/etc/default/inetd\fR property \fBENABLE_TCPWRAPPERS\fR.
557 .ne 2
559 \fB\fBwait\fR\fR
561 .sp .6
562 .RS 4n
563 If \fBtrue\fR this is a \fBwait\fR-type service, otherwise it is a
564 \fBnowait\fR-type service. A \fBwait\fR-type service has the following
565 characteristics:
566 .RS +4
568 .ie t \(bu
569 .el o
570 Its \fBinetd_start\fR method will take over listening duties on the service's
571 bound endpoint when it is executed.
573 .RS +4
575 .ie t \(bu
576 .el o
577 \fBinetd\fR will wait for it to exit after it is executed before it resumes
578 listening duties.
580 Datagram servers must be configured as being of type \fBwait\fR, as they are
581 always invoked with the original datagram endpoint that will participate in
582 delivering the service bound to the specified service. They do not have
583 separate "listening" and "accepting" sockets. Connection-oriented services,
584 such as TCP stream services can be designed to be either of type \fBwait\fR or
585 \fBnowait\fR.
590 A number of the basic properties are optional for a service. In their absence,
591 their values are taken from the set of default values present in the
592 \fBdefaults\fR property group in the \fBinetd\fR service. These properties,
593 with their seed values, are listed below. Note that these values are
594 configurable through \fBinetadm\fR(1M).
596 .in +2
598 bind_fail_interval  -1
599 bind_fail_max       -1
600 con_rate_offline    -1
601 connection_backlog  10
602 failrate_count      40
603 failrate_time       60
604 inherit_env         true
605 max_con_rate        -1
606 max_copies          -1
607 tcp_trace           false
608 tcp_wrappers        false
610 .in -2
614 Each method specified for a service will have its configuration stored in the
615 SMF repository, within a property group of the same name as the method. The set
616 of properties allowable for these methods includes those specified for the
617 services managed by \fBsvc.startd\fR(1M). (See \fBsvc.startd\fR(1M) for further
618 details.) Additionally, for the \fBinetd_start\fR method, you can set the
619 \fBarg0\fR property.
622 The \fBarg0\fR property allows external wrapper programs to be used with
623 \fBinetd\fR services. Specifically, it allows the first argument,
624 \fBargv[0]\fR, of the service's start method to be something other than the
625 path of the server program.
628 In the case where you want to use an external wrapper program and pass
629 arguments to the service's daemon, the arguments should be incorporated as
630 arguments to the wrapper program in the \fBexec\fR property. For example:
632 .in +2
634 exec='/path/to/wrapper/prog service_daemon_args'
635 arg0='/path/to/service/daemon'
637 .in -2
641 In addition to the special method tokens mentioned in \fBsmf_method\fR(5),
642 \fBinetd\fR also supports the \fB:kill_process\fR token for \fBwait\fR-type
643 services. This results in behavior identical to that if the \fB:kill\fR token
644 were supplied, except that the \fBkill\fR signal is sent only to the parent
645 process of the \fBwait\fR-type service's \fBstart\fR method, not to all members
646 of its encompassing process contract (see \fBprocess\fR(4)).
647 .SS "Configuring Protocols for Sockets-Based Services"
650 When configuring \fBinetd\fR for a sockets-based service, you have the choice,
651 depending on what is supported by the service, of the alternatives described
652 under the \fBproto\fR property, above. The following are guidelines for which
653 \fBproto\fR values to use:
654 .RS +4
656 .ie t \(bu
657 .el o
658 For a service that supports only IPv4: \fBtcp\fR and \fBudp\fR
660 .RS +4
662 .ie t \(bu
663 .el o
664 For a service that supports only IPv6: \fBtcp6only\fR and \fBudp6only\fR
666 .RS +4
668 .ie t \(bu
669 .el o
670 For a service that supports both IPv4 and IPv6:
671 .RS +4
673 .ie t \(bu
674 .el o
675 Obsolete and not recommended: \fBtcp6\fR and \fBudp6\fR
677 .RS +4
679 .ie t \(bu
680 .el o
681 Recommended: use two separate entries that differ only in the proto field. One
682 entry has \fBtcp\fR and the other has \fBtcp6only\fR, or \fBudp\fR plus
683 \fBudp6only\fR.
688 See EXAMPLES for an example of a configuration of a service that supports both
689 IPv4 and IPv6.
690 .SS "\fBinetd\fR Methods"
693 \fBinetd\fR provides the methods listed below for consumption by the master
694 restarter, \fBsvc.startd\fR(1M).
696 .ne 2
698 \fB\fBstart\fR\fR
700 .sp .6
701 .RS 4n
702 Causes \fBinetd\fR to start providing service. This results in \fBinetd\fR
703 beginning to handle \fBsmf\fR requests for its managed services and network
704 requests for those services that are in either the \fBonline\fR or
705 \fBdegraded\fR state.
707 In addition, \fBinetd\fR also checks if the \fBinetd.conf\fR(4)-format
708 configuration file it is monitoring has changed since the last
709 \fBinetconv\fR(1M) conversion was carried out. If it has, then a message
710 telling the administrator to re-run \fBinetconv\fR to effect the changes made
711 is logged in \fBsyslog\fR.
715 .ne 2
717 \fB\fBstop\fR\fR
719 .sp .6
720 .RS 4n
721 Causes \fBinetd\fR to stop providing service. At this point, \fBinetd\fR
722 transitions each of its services that are not in either the \fBmaintenance\fR
723 or \fBdisabled\fR states to the \fBoffline\fR state, running any appropriate
724 methods in the process.
728 .ne 2
730 \fB\fBrefresh\fR\fR
732 .sp .6
733 .RS 4n
734 Results in a refresh being performed for each of its managed services and the
735 \fBinetd.conf\fR(4) format configuration file being checked for change, as in
736 the \fBstart\fR method. When a service is refreshed, its behavior depends on
737 its current state:
738 .RS +4
740 .ie t \(bu
741 .el o
742 if it is in the \fBmaintenance\fR or \fBdisabled\fR states, no action is
743 performed because the configuration will be read and consumed when the service
744 leaves the state;
746 .RS +4
748 .ie t \(bu
749 .el o
750 if it is in the \fBoffline\fR state, the configuration will be read and any
751 changes consumed immediately;
753 .RS +4
755 .ie t \(bu
756 .el o
757 if it is in the \fBonline\fR or \fBdegraded\fR state and the configuration has
758 changed such that a re-binding is necessary to conform to it, then the service
759 will be transitioned to the \fBoffline\fR state and back again, using the new
760 configuration for the bind;
762 .RS +4
764 .ie t \(bu
765 .el o
766 if it is in the \fBonline\fR state and a re-binding is not necessary, then the
767 \fBinetd_refresh\fR method of the service, if provided, will be run to allow
768 \fBonline\fR \fBwait\fR-type services to consume any other changes.
772 .SH OPTIONS
775 No options are supported.
776 .SH OPERANDS
778 .ne 2
780 \fB\fIconfiguration-file\fR\fR
782 .sp .6
783 .RS 4n
784 Specifies an alternate location for the legacy service file
785 (\fBinetd.conf\fR(4)).
789 .ne 2
791 \fB\fBstart\fR|\fBstop\fR|\fBrefresh\fR\fR
793 .sp .6
794 .RS 4n
795 Specifies which of \fBinetd\fR's methods should be run.
798 .SH EXAMPLES
800 \fBExample 1 \fRConfiguring a Service that Supports Both IPv4 and IPv6
803 The following commands illustrate the existence of services that support both
804 IPv4 and IPv6 and assign \fBproto\fR properties to those services.
807 .in +2
809 example# \fBsvcs -a | grep mysvc\fR
810 online         15:48:29 svc:/network/mysvc:dgram4
811 online         15:48:29 svc:/network/mysvc:dgram6
812 online         15:51:47 svc:/network/mysvc:stream4
813 online         15:52:10 svc:/network/mysvc:stream6
815 # \fBinetadm -M network/rpc/mysvc:dgram4 proto=udp\fR
816 # \fBinetadm -M network/rpc/mysvc:dgram6 proto=udp6only\fR
817 # \fBinetadm -M network/rpc/mysvc:stream4 proto=tcp\fR
818 # \fBinetadm -M network/rpc/mysvc:stream6 proto=tcp6only\fR
820 .in -2
825 See \fBsvcs\fR(1) and \fBinetadm\fR(1M) for descriptions of those commands.
827 .SH ATTRIBUTES
830 See \fBattributes\fR(5) for descriptions of the following attributes:
835 box;
836 c | c
837 l | l .
838 ATTRIBUTE TYPE  ATTRIBUTE VALUE
840 Interface Stability     Evolving
843 .SH SEE ALSO
846 \fBfmd\fR(1M), \fBinetadm\fR(1M), \fBinetconv\fR(1M), \fBsvcadm\fR(1M),
847 \fBsvccfg\fR(1M), \fBsvcs\fR(1), \fBsvc.startd\fR(1M), \fBsyslog\fR(3C),
848 \fBgetnetconfigent\fR(3NSL), \fBgetrpcbyname\fR(3NSL),
849 \fBgetservbyname\fR(3SOCKET), \fBinetd.conf\fR(4), \fBprocess\fR(4),
850 \fBsyslog.conf\fR(4), \fBattributes\fR(5), \fBsmf\fR(5), \fBsmf_method\fR(5)
851 .SH NOTES
854 The \fBinetd\fR daemon performs the same function as, but is implemented
855 significantly differently from, the daemon of the same name in Solaris 9 and
856 prior Solaris operating system releases. In the current Solaris release,
857 \fBinetd\fR is part of the Solaris Management Facility (see \fBsmf\fR(5)) and
858 will run only within that facility.
861 The \fB/etc/default/inetd\fR file has been deprecated. The functionality
862 represented by the properties \fBENABLE_CONNECTION_LOGGING\fR and
863 \fBENABLE_TCP_WRAPPERS\fR are now available as the \fBtcp_trace\fR and
864 \fBtcp_wrappers\fR properties, respectively. These properties are described
865 above, under "Service Properties".