INETCONV(8) | Maintenance Commands and Procedures | INETCONV(8) |
inetconv - convert inetd.conf entries into smf service manifests, import them into smf repository
inetconv -?
inetconv [-f] [-n] [-i srcfile] [-o destdir]
inetconv -e [-n] [-i srcfile]
The inetconv utility converts a file containing records of inetd.conf(5) into smf(7) service manifests, and then import those manifests into the smf repository. Once the inetd.conf file has been converted, the only way to change aspects of an inet service is to use the inetadm(8) utility.
There is a one-to-one correspondence between a service line in the input file and the manifest generated. By default, the manifests are named using the following template:
<svcname>-<proto>.xml
The <svcname> token is replaced by the service's name and the <proto> token by the service's protocol. Any slash (/) characters that exist in the source line for the service name or protocol are replaced with underscores (_).
The service line is recorded as a property of the converted service.
During the conversion process, if a service line is found to be malformed or to be for an internal inetd service, no manifest is generated and that service line is skipped.
The input file is left untouched by the conversion process.
The following options are supported:
-?
-e
-f
-i srcfile
-n
If the -e option is specified, the -n option only displays the smf services that would be enabled.
-o
Example 1 Generating smf Manifests from inetd.conf
The following command generates smf(7) manifests from inetd.conf(5) and places them in /var/tmp, overwriting any preexisting manifests of the same name, and then imports them into the smf repository.
# inetconv -f -o /var/tmp 100232/10 -> /var/tmp/100232_10-rpc_udp.xml Importing 100232_10-rpc_udp.xml ...Done telnet -> /var/tmp/telnet-tcp6.xml Importing telnet-tcp6.xml ...Done
Example 2 Generating Manifests from an Alternate Input File
The following command specifies a different input file and does not load the resulting manifests into the smf repository.
# inetconv -n -i /export/test/inet.svcs -o /var/tmp 100232/10 -> /var/tmp/100232_10-rpc_udp.xml telnet -> /var/tmp/telnet-tcp6.xml
The following exit values are returned:
0
1
2
3
4
/var/svc/manifest/network/{rpc}/<svcname>-<proto>.xml
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Evolving |
inetd.conf(5), attributes(7), smf(7), inetadm(8), inetd(8), svccfg(8)
October 21, 2004 | OmniOS |