1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
|
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--
Copyright 2009 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
CDDL HEADER START
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.
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.
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]
CDDL HEADER END
NOTE: This service manifest is not editable; its contents will
be overwritten by package or patch operations, including
operating system upgrade. Make customizations in a different
file.
Service manifest for the inetd delegated restarter.
-->
<service_bundle type='manifest' name='SUNWcsr:inetd'>
<service
name='network/inetd'
type='restarter'
version='1'>
<create_default_instance enabled='false' />
<single_instance />
<dependency
name='loopback'
grouping='require_any'
restart_on='error'
type='service'>
<service_fmri value='svc:/network/loopback' />
</dependency>
<dependency
name='filesystem'
grouping='require_all'
restart_on='error'
type='service'>
<service_fmri value='svc:/system/filesystem/local' />
</dependency>
<dependency
name='network'
grouping='optional_all'
restart_on='error'
type='service'>
<service_fmri value='svc:/milestone/network' />
</dependency>
<dependency
name='rpc'
grouping='optional_all'
restart_on='error'
type='service'>
<service_fmri value='svc:/network/rpc/bind' />
</dependency>
<!--
Ensure that upgrade has the chance to run before
the service to avoid gratuitous complaints about
inetd.conf having been modified.
-->
<dependency
name='upgrade'
grouping='optional_all'
restart_on='none'
type='service'>
<service_fmri value='svc:/network/inetd-upgrade' />
</dependency>
<dependency
name='milestones'
grouping='require_all'
restart_on='none'
type='service'>
<service_fmri value='svc:/milestone/sysconfig' />
<service_fmri value='svc:/milestone/name-services' />
</dependency>
<dependent
name='inetd_multi-user'
grouping='optional_all'
restart_on='none'>
<service_fmri value='svc:/milestone/multi-user' />
</dependent>
<exec_method
type='method'
name='stop'
exec='/usr/lib/inet/inetd %m'
timeout_seconds='60' >
</exec_method>
<exec_method
type='method'
name='start'
exec='/usr/lib/inet/inetd %m'
timeout_seconds='60' >
</exec_method>
<exec_method
type='method'
name='refresh'
exec='/usr/lib/inet/inetd %m'
timeout_seconds='60' >
</exec_method>
<!--
inetd's managed service property defaults. Values chosen to
provide legacy inetd's behavior.
-->
<property_group
name='defaults'
type='application'>
<stability value='Evolving' />
<propval name='max_con_rate' type='integer' value='-1' />
<propval name='con_rate_offline' type='integer' value='-1' />
<propval name='max_copies' type='integer' value='-1' />
<propval name='failrate_cnt' type='integer' value='40' />
<propval name='failrate_interval' type='integer' value='60' />
<propval name='inherit_env' type='boolean' value='true' />
<propval name='tcp_keepalive' type='boolean' value='false' />
<propval name='tcp_trace' type='boolean' value='false' />
<propval name='tcp_wrappers' type='boolean' value='false' />
<propval name='bind_addr' type='astring' value='' />
<propval name='bind_fail_max' type='integer' value='-1' />
<propval name='bind_fail_interval' type='integer' value='-1' />
<propval name='connection_backlog' type='integer' value='10' />
<propval name='value_authorization' type='astring'
value='solaris.smf.value.inetd' />
</property_group>
<property_group name='general' type='framework'>
<!-- to manage inetd -->
<propval name='action_authorization' type='astring'
value='solaris.smf.manage.inetd' />
<propval name='value_authorization' type='astring'
value='solaris.smf.manage.inetd' />
</property_group>
<property_group name='config' type='application'>
<!-- to enable debug-class syslog messages -->
<propval name='debug' type='boolean' value='false' />
<propval name='value_authorization' type='astring'
value='solaris.smf.value.inetd' />
</property_group>
<stability value='Unstable' />
<template>
<common_name>
<loctext xml:lang='C'>inetd</loctext>
</common_name>
<description>
<loctext xml:lang='C'>
inetd provides listening and spawning services for registered Internet
services.
</loctext>
</description>
<documentation>
<manpage title='inetd' section='8'
manpath='/usr/share/man' />
<manpage title='inetadm' section='8'
manpath='/usr/share/man' />
</documentation>
<pg_pattern name='config' type='application' target='this'
required='false'>
<prop_pattern name='debug' type='boolean'
required='false'>
<description>
<loctext xml:lang='C'>
Enable syslog-style debugging messages for inetd.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
</pg_pattern>
<pg_pattern name='defaults' type='application'
target='this' required='true'>
<description>
<loctext xml:lang='C'>
Defaults for properties optional for inetd services. Defaults are inherited from inetd if the property is not specified by the service.
</loctext>
</description>
<prop_pattern name='bind_addr' type='astring'
required='false'>
<description>
<loctext xml:lang='C'>
The address of the network interface to which the service should be bound. An empty string value causes the service to accept connections on any network interface.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='bind_fail_interval' type='integer'
required='true'>
<description>
<loctext xml:lang='C'>
Time in seconds between a failed bind attempt and a retry.
</loctext>
</description>
<cardinality min='1' max='1' />
<values>
<value name='0'>
<description>
<loctext xml:lang='C'>
No retries are attempted.
</loctext>
</description>
</value>
<value name='-1'>
<description>
<loctext xml:lang='C'>
No retries are attempted.
</loctext>
</description>
</value>
</values>
</prop_pattern>
<prop_pattern name='bind_fail_max' type='integer'
required='true'>
<description>
<loctext xml:lang='C'>
The maxiumum nubmer of times inetd retries binding to a service's port before giving up.
</loctext>
</description>
<cardinality min='1' max='1' />
<values>
<value name='-1'>
<description>
<loctext xml:lang='C'>
No retry limiting is imposed.
</loctext>
</description>
</value>
</values>
</prop_pattern>
<prop_pattern name='con_rate_offline' type='integer'
required='true'>
<description>
<loctext xml:lang='C'>
The time in seconds a service will remain offline if it exceeds its configured maximum connection rate, as defined by max_con_rate.
</loctext>
</description>
<cardinality min='1' max='1' />
<values>
<value name='0'>
<description>
<loctext xml:lang='C'>
Connection rate limiting is disabled.
</loctext>
</description>
</value>
<value name='-1'>
<description>
<loctext xml:lang='C'>
Connection rate limiting is disabled.
</loctext>
</description>
</value>
</values>
</prop_pattern>
<prop_pattern name='connection_backlog' type='integer'
required='true'>
<description>
<loctext xml:lang='C'>
The limit on the number of incoming client requests that can be queued at the listening endpoints for servers.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='failrate_cnt' type='integer'
required='true'>
<description>
<loctext xml:lang='C'>
Number of instances of a wait-type service which, in combination with the failrate_interval property, determine when to transition the service into maintenance.
</loctext>
</description>
<cardinality min='1' max='1' />
<values>
<value name='0'>
<description>
<loctext xml:lang='C'>
Failure rate limiting is disabled.
</loctext>
</description>
</value>
<value name='-1'>
<description>
<loctext xml:lang='C'>
Failure rate limiting is disabled.
</loctext>
</description>
</value>
</values>
</prop_pattern>
<prop_pattern name='failrate_interval' type='integer'
required='true'>
<description>
<loctext xml:lang='C'>
Time in seconds for interval to check for failrate_cnt failures of wait-type services which determine when to transition the service into maintenance.
</loctext>
</description>
<cardinality min='1' max='1' />
<values>
<value name='0'>
<description>
<loctext xml:lang='C'>
Failure rate limiting is disabled.
</loctext>
</description>
</value>
<value name='-1'>
<description>
<loctext xml:lang='C'>
Failure rate limiting is disabled.
</loctext>
</description>
</value>
</values>
</prop_pattern>
<prop_pattern name='inherit_env' type='boolean'
required='true'>
<description>
<loctext xml:lang='C'>
If true, pass inetd's environment on to the service's start method. If false, the environment is cleared with the exception of SMF_*, and the environment variables from the method context.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='max_con_rate' type='integer'
required='true'>
<description>
<loctext xml:lang='C'>
The maximum allowed connection rate, in connections per second for a nowait-type service.
</loctext>
</description>
<units>
<loctext xml:lang='C'>
connections per second
</loctext>
</units>
<cardinality min='1' max='1' />
<values>
<value name='0'>
<description>
<loctext xml:lang='C'>
Connection rate limiting is disabled.
</loctext>
</description>
</value>
<value name='-1'>
<description>
<loctext xml:lang='C'>
Connection rate limiting is disabled.
</loctext>
</description>
</value>
</values>
</prop_pattern>
<prop_pattern name='max_copies' type='integer'
required='true'>
<description>
<loctext xml:lang='C'>
Maximum number of copies of a nowait service that can run concurrently.
</loctext>
</description>
<cardinality min='1' max='1' />
<values>
<value name='0'>
<description>
<loctext xml:lang='C'>
Copies limiting is disabled.
</loctext>
</description>
</value>
<value name='-1'>
<description>
<loctext xml:lang='C'>
Copies limiting is disabled.
</loctext>
</description>
</value>
</values>
</prop_pattern>
<prop_pattern name='tcp_keepalive' type='boolean'
required='true'>
<description>
<loctext xml:lang='C'>
If true, enables periodic transmission of messages for nowait stream services.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='tcp_trace' type='boolean'
required='true'>
<description>
<loctext xml:lang='C'>
If true, enables logging of the service name, client IP address, and TCP port number for nowait services using syslog.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='tcp_wrappers' type='boolean'
required='true'>
<description>
<loctext xml:lang='C'>
If true, enables TCP wrappers for nowait stream services.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
</pg_pattern>
<pg_pattern name='inetd' type='framework'
target='delegate' required='true'>
<description>
<loctext xml:lang='C'>
Basic configuration of an inetd-managed service. Defaults are inherited from inetd if the property is not specified by the service.
</loctext>
</description>
<prop_pattern name='bind_addr' type='astring'
required='false'>
<description>
<loctext xml:lang='C'>
The address of the network interface to which the service should be bound. An empty string value causes the service to accept connections on any network interface.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='bind_fail_interval' type='integer'
required='false'>
<description>
<loctext xml:lang='C'>
Time in seconds between a failed bind attempt and a retry.
</loctext>
</description>
<cardinality min='1' max='1' />
<values>
<value name='0'>
<description>
<loctext xml:lang='C'>
No retries are attempted.
</loctext>
</description>
</value>
<value name='-1'>
<description>
<loctext xml:lang='C'>
No retries are attempted.
</loctext>
</description>
</value>
</values>
</prop_pattern>
<prop_pattern name='bind_fail_max' type='integer'
required='false'>
<description>
<loctext xml:lang='C'>
The maxiumum nubmer of times inetd retries binding to a service's port before giving up.
</loctext>
</description>
<cardinality min='1' max='1' />
<values>
<value name='-1'>
<description>
<loctext xml:lang='C'>
No retry limiting is imposed.
</loctext>
</description>
</value>
</values>
</prop_pattern>
<prop_pattern name='con_rate_offline' type='integer'
required='false'>
<description>
<loctext xml:lang='C'>
The time in seconds a service will remain offline if it exceeds its configured maximum connection rate, as defined by max_con_rate.
</loctext>
</description>
<cardinality min='1' max='1' />
<values>
<value name='0'>
<description>
<loctext xml:lang='C'>
Connection rate limiting is disabled.
</loctext>
</description>
</value>
<value name='-1'>
<description>
<loctext xml:lang='C'>
Connection rate limiting is disabled.
</loctext>
</description>
</value>
</values>
</prop_pattern>
<prop_pattern name='connection_backlog' type='integer'
required='false'>
<description>
<loctext xml:lang='C'>
The limit on the number of incoming client requests that can be queued at the listening endpoints for servers.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='endpoint_type' type='astring'
required='true'>
<description>
<loctext xml:lang='C'>
The type of socket used by the service.
</loctext>
</description>
<cardinality min='1' max='1' />
<constraints>
<value name='tli'>
<description>
<loctext xml:lang='C'>
TLI endpoint
</loctext>
</description>
</value>
<value name='stream'>
<description>
<loctext xml:lang='C'>
stream socket
</loctext>
</description>
</value>
<value name='dgram'>
<description>
<loctext xml:lang='C'>
datagram socket
</loctext>
</description>
</value>
<value name='raw'>
<description>
<loctext xml:lang='C'>
raw socket
</loctext>
</description>
</value>
<value name='seqpacket'>
<description>
<loctext xml:lang='C'>
sequenced packet socket
</loctext>
</description>
</value>
</constraints>
<choices>
<value name='dgram' />
<value name='stream' />
<value name='tli' />
</choices>
</prop_pattern>
<prop_pattern name='failrate_cnt' type='integer'
required='false'>
<description>
<loctext xml:lang='C'>
Number of instances of a wait-type service which, in combination with the failrate_interval property, determine when to transition the service into maintenance.
</loctext>
</description>
<cardinality min='1' max='1' />
<values>
<value name='0'>
<description>
<loctext xml:lang='C'>
Failure rate limiting is disabled.
</loctext>
</description>
</value>
<value name='-1'>
<description>
<loctext xml:lang='C'>
Failure rate limiting is disabled.
</loctext>
</description>
</value>
</values>
</prop_pattern>
<prop_pattern name='failrate_interval' type='integer'
required='false'>
<description>
<loctext xml:lang='C'>
Time in seconds for interval to check for failrate_cnt failures of wait-type services which determine when to transition the service into maintenance.
</loctext>
</description>
<cardinality min='1' max='1' />
<values>
<value name='0'>
<description>
<loctext xml:lang='C'>
Failure rate limiting is disabled.
</loctext>
</description>
</value>
<value name='-1'>
<description>
<loctext xml:lang='C'>
Failure rate limiting is disabled.
</loctext>
</description>
</value>
</values>
</prop_pattern>
<prop_pattern name='inherit_env' type='boolean'
required='false'>
<description>
<loctext xml:lang='C'>
If true, pass inetd's environment on to the service's start method. If false, the environment is cleared with the exception of SMF_*, and the environment variables from the method context.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='isrpc' type='boolean'
required='false'>
<description>
<loctext xml:lang='C'>
If true, this is an RPC service.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='max_con_rate' type='integer'
required='false'>
<description>
<loctext xml:lang='C'>
The maximum allowed connection rate, in connections per second for a nowait-type service.
</loctext>
</description>
<units>
<loctext xml:lang='C'>
connections per second
</loctext>
</units>
<cardinality min='1' max='1' />
<values>
<value name='0'>
<description>
<loctext xml:lang='C'>
Connection rate limiting is disabled.
</loctext>
</description>
</value>
<value name='-1'>
<description>
<loctext xml:lang='C'>
Connection rate limiting is disabled.
</loctext>
</description>
</value>
</values>
</prop_pattern>
<prop_pattern name='max_copies' type='integer'
required='false'>
<description>
<loctext xml:lang='C'>
Maximum number of copies of a nowait service that can run concurrently.
</loctext>
</description>
<cardinality min='1' max='1' />
<values>
<value name='0'>
<description>
<loctext xml:lang='C'>
Copies limiting is disabled.
</loctext>
</description>
</value>
<value name='-1'>
<description>
<loctext xml:lang='C'>
Copies limiting is disabled.
</loctext>
</description>
</value>
</values>
</prop_pattern>
<prop_pattern name='name' type='astring'
required='true'>
<description>
<loctext xml:lang='C'>
Can be set to a service name understood by getservbyname(3SOCKET), or if isrpc is true, a service name understood by getrpcbyname(3NSL) or a valid RPC program number.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='proto' type='astring'
required='true'>
<description>
<loctext xml:lang='C'>
A list of protocols supported by the service.
</loctext>
</description>
<choices>
<value name='tcp' />
<value name='tcp6' />
<value name='tcp6only' />
<value name='udp' />
<value name='udp6' />
<value name='udp6only' />
</choices>
</prop_pattern>
<prop_pattern name='rpc_low_version' type='integer'
required='false'>
<description>
<loctext xml:lang='C'>
Lowest supported RPC version. Required when isrpc is set to true.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='rpc_high_version' type='integer'
required='false'>
<description>
<loctext xml:lang='C'>
Highest supported RPC version. Required when isrpc is set to true.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='tcp_keepalive' type='boolean'
required='false'>
<description>
<loctext xml:lang='C'>
If true, enables periodic transmission of messages for nowait stream services.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='tcp_trace' type='boolean'
required='false'>
<description>
<loctext xml:lang='C'>
If true, enables logging of the service name, client IP address, and TCP port number for nowait services using syslog.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='tcp_wrappers' type='boolean'
required='false'>
<description>
<loctext xml:lang='C'>
If true, enables TCP wrappers for nowait stream services.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='wait' type='boolean'
required='false'>
<description>
<loctext xml:lang='C'>
If true, this is a wait-type service. For wait-type services, the inetd_start method will take over listening duties on the service's bound endpoint and inetd will wait for it to exit before resuming listening.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
</pg_pattern>
<pg_pattern type='method' target='delegate' required='false'>
<description>
<loctext xml:lang='C'>
A method defines how inetd interacts with its services. inetd_start is executed to handle a connection. inetd_offline is executed when the service is taken offline. inetd_online is executed when the service is taken from offline to online. inetd_disable is executed when the service is disabled. inetd_refresh is executed when the service is refreshed.
</loctext>
</description>
<prop_pattern name='exec' type='astring'
required='true'>
<common_name>
<loctext xml:lang='C'>
method executable
</loctext>
</common_name>
<description>
<loctext xml:lang='C'>
The method executable may be a script, program, or keyword.
</loctext>
</description>
<cardinality min='1' max='1' />
<values>
<value name=':true'>
<description>
<loctext xml:lang='C'>
Always returns SMF_EXIT_OK. This token should be used for methods that are required by the restarter but which are unnecessary for the particular service implementation.
</loctext>
</description>
</value>
<value name=':kill [-signal]'>
<description>
<loctext xml:lang='C'>
Sends the specified signal, which is SIGTERM by default, to all processes in the primary instance contract. Always returns SMF_EXIT_OK. This token should be used to replace common pkill invocations.
</loctext>
</description>
</value>
<value name=':kill_process [-signal]'>
<description>
<loctext xml:lang='C'>
For wait-type services, send the specified signal, which is SIGTERM by default, to the parent process of the wait-type serviće´s start method.
</loctext>
</description>
</value>
</values>
<choices>
<include_values type='values' />
</choices>
</prop_pattern>
<prop_pattern name='type' type='astring'
required='true'>
<description>
<loctext xml:lang='C'>
A method may only be of type method.
</loctext>
</description>
<cardinality min='1' max='1' />
<constraints>
<value name='method' />
</constraints>
</prop_pattern>
<prop_pattern name='timeout_seconds' type='count'
required='true'>
<description>
<loctext xml:lang='C'>
Number of seconds before the method is considered unresponsive. After the method timeout expires, the method will be killed.
</loctext>
</description>
<cardinality min='1' max='1' />
<values>
<value name='0'>
<common_name>
<loctext xml:lang='C'>
infinite
</loctext>
</common_name>
<description>
<loctext xml:lang='C'>
This method will never time out.
</loctext>
</description>
</value>
<value name='-1'>
<common_name>
<loctext xml:lang='C'>
infinite (legacy)
</loctext>
</common_name>
<description>
<loctext xml:lang='C'>
This method will never time out. 0 is the preferred value.
</loctext>
</description>
</value>
</values>
</prop_pattern>
<!-- method_context direct properties -->
<prop_pattern name='working_directory' type='astring'
required='false'>
<description>
<loctext xml:lang='C'>
The working directory to launch the method from. ":default" can be used as a token to indicate the home directory of the user specified by the credential or profile.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='project' type='astring'
required='false'>
<description>
<loctext xml:lang='C'>
The project ID in numeric or text form. :default can be used as a token to indicate a project identified by getdefaultproj(3PROJECT) for the user whose uid is used to launch the method.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='resource_pool' type='astring'
required='false'>
<common_name>
<loctext xml:lang='C'>
method context resource pool
</loctext>
</common_name>
<description>
<loctext xml:lang='C'>
The resource pool name on which to launch the method. :default can be used
as a token to indicate the pool specified in the project(5) entry given in
the project attribute.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<!-- method_credential properties -->
<prop_pattern name='user' type='astring'
required='false'>
<common_name>
<loctext xml:lang='C'>
method credential user
</loctext>
</common_name>
<description>
<loctext xml:lang='C'>
The user ID in numeric or text form.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='group' type='astring'
required='false'>
<common_name>
<loctext xml:lang='C'>
method credential group
</loctext>
</common_name>
<description>
<loctext xml:lang='C'>
The group ID in numeric or text form.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='supp_groups' type='astring'
required='false'>
<common_name>
<loctext xml:lang='C'>
method credential supplemental groups
</loctext>
</common_name>
<description>
<loctext xml:lang='C'>
An optional string that specifies the supplemental group memberships by ID,
in numeric or text form.
</loctext>
</description>
<cardinality min='1' max='1' />
<internal_separators>,</internal_separators>
</prop_pattern>
<prop_pattern name='privileges' type='astring'
required='false'>
<common_name>
<loctext xml:lang='C'>
method credential privileges
</loctext>
</common_name>
<description>
<loctext xml:lang='C'>
An optional string specifying the privilege set as defined in privileges(7).
</loctext>
</description>
<cardinality min='1' max='1' />
<internal_separators>,</internal_separators>
</prop_pattern>
<prop_pattern name='limit_privileges' type='astring'
required='false'>
<common_name>
<loctext xml:lang='C'>
method credential limit privilege set
</loctext>
</common_name>
<description>
<loctext xml:lang='C'>
An optional string specifying the limit privilege set as defined in
privileges(7).
</loctext>
</description>
<cardinality min='1' max='1' />
<internal_separators>,</internal_separators>
</prop_pattern>
<!-- method_profile properties -->
<prop_pattern name='use_profile' type='boolean'
required='false'>
<description>
<loctext xml:lang='C'>
A boolean that specifies whether the profile should be used instead of the
user, group, privileges, and limit_privileges properties.
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='profile' type='astring'
required='false'>
<common_name>
<loctext xml:lang='C'>
method profile RBAC profile specification
</loctext>
</common_name>
<description>
<loctext xml:lang='C'>
The name of an RBAC (role-based access control) profile which, along with the
method executable, identifies an entry in exec_attr(5).
</loctext>
</description>
<cardinality min='1' max='1' />
</prop_pattern>
<!-- method_environment properties -->
<prop_pattern name='environment' type='astring'
required='false'>
<common_name>
<loctext xml:lang='C'>
method environment variables
</loctext>
</common_name>
<description>
<loctext xml:lang='C'>
Environment variables to insert into the environment of the method, in the
form of a number of NAME=value strings.
</loctext>
</description>
</prop_pattern>
</pg_pattern>
<pg_pattern name='restarter' type='framework'
target='delegate' required='false'>
<description>
<loctext xml:lang='C'>
Communicate restarter-set status of the service.
</loctext>
</description>
<prop_pattern name='auxiliary_state' type='astring'
required='false'>
<description>
<loctext xml:lang='C'>
Additional information about why a service is in the current state. Unused by inetd.
</loctext>
</description>
<visibility value='hidden' />
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='auxiliary_fmri' type='astring'
required='false'>
<description>
<loctext xml:lang='C'>
Auxiliary fmri information for service state diagnosis.
</loctext>
</description>
<visibility value='hidden' />
</prop_pattern>
<prop_pattern name='state_timestamp' type='time'
required='false'>
<description>
<loctext xml:lang='C'>
Time the current state was reached.
</loctext>
</description>
<visibility value='readonly' />
<cardinality min='1' max='1' />
</prop_pattern>
<prop_pattern name='state' type='astring'
required='false'>
<description>
<loctext xml:lang='C'>
The current state of this service instance.
</loctext>
</description>
<visibility value='readonly' />
<cardinality min='1' max='1' />
<constraints>
<value name='online'>
<description>
<loctext xml:lang='C'>
The instance is handling new network requests and might have existing connections alive.
</loctext>
</description>
</value>
<value name='offline'>
<description>
<loctext xml:lang='C'>
Connections might be active, but no new requests are being handled. An instance may be offline because its dependencies are unsatisfied, the service has exceeded its configured connection rate limit, the service as reached its allowed number of active connections, or inetd failed to listen on behalf of the service on all its protocols.
</loctext>
</description>
</value>
<value name='uninitialized'>
<description>
<loctext xml:lang='C'>
inetd has yet to process this instance, or the inetd service has not yet been started by svc.startd.
</loctext>
</description>
</value>
<value name='degraded'>
<description>
<loctext xml:lang='C'>
The instance was able to listen and process requests for some, but not all, of the protocoals specified for the instance. Existing network connections might be active.
</loctext>
</description>
</value>
<value name='disabled'>
<description>
<loctext xml:lang='C'>
The instance is disabled, is not accepting new connections, and has none active.
</loctext>
</description>
</value>
<value name='maintenance'>
<description>
<loctext xml:lang='C'>
The instance is either malfunctioning and needs administrator attention, or an administrator has requested the instance enter this state.
</loctext>
</description>
</value>
</constraints>
</prop_pattern>
<prop_pattern name='next_state' type='astring'
required='false'>
<description>
<loctext xml:lang='C'>
The next expected state of this instance.
</loctext>
</description>
<visibility value='readonly' />
<cardinality min='1' max='1' />
<constraints>
<value name='online'>
<description>
<loctext xml:lang='C'>
The service is being started or refreshed, and will soon be online and running. This transition may fail and the instance may end up in offline or maintenance instead.
</loctext>
</description>
</value>
<value name='offline'>
<description>
<loctext xml:lang='C'>
The instance has temporarily suspended accepting new network requests due to dependencies or reaching a connection or failure threshold. Most instances will leave this state once their dependencies are satisfied or the threshold is no longer exceeded.
</loctext>
</description>
</value>
<value name='degraded'>
<description>
<loctext xml:lang='C'>
The instance was able to listen and process requests for some, but not all, of the protocoals specified for the instance. Existing network connections might be active.
</loctext>
</description>
</value>
<value name='disabled'>
<description>
<loctext xml:lang='C'>
The instance will be disabled, will not be accepting new connections, and will have none active.
</loctext>
</description>
</value>
<value name='maintenance'>
<description>
<loctext xml:lang='C'>
The instance will be in maintenance, and administrative action will be required to restore the instance to offline and subsequent states.
</loctext>
</description>
</value>
</constraints>
</prop_pattern>
</pg_pattern>
</template>
</service>
</service_bundle>
|