Christine Tran wrote: > Michael Hunter wrote: > >>> I don't understand the behavior of switch "-e", the man page is not >>> clear, can someone explain? >> The interesting code is here: >> http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/inetconv/inetconv.c#1470 >> >> '-e' just uses the inet configuration file as a list of services to >> enable. it doesn't do any conversion (1487). I agree the man page >> isn't all that clear. File a bug against it. > > It would not be such a big deal if it merely enables; > there's partial importing and overwriting as well: > > root at zone1~> inetconv -e -i /foo > svc:/network/ftp:default will exec /scratch/ftpd -a -u 002 > > svc:/network/ftp> listprop inetd_start/* > inetd_start/timeout_seconds count 0 > inetd_start/type astring method > inetd_start/use_profile boolean false > inetd_start/user astring root > inetd_start/working_directory astring :default > inetd_start/exec astring "/scratch/ftpd -a -u 002" > inetd_start/arg0 astring -a > > I can't imagine when I would use inetconv -e, I already have inetadm -e, > and svcadm enable, and the behavior of -e -i is just weird. I can't > file a bug against the man page because I don't know what the man page > should say. I believe inetconv by default enables a newly converted > service, having the line uncommented in inetd.conf means you want the > service to run to begin with. Was -e and -i ever intended to be used > together? Can we just get rid of -e? I don't need three ON switches. >
inetconv -e is used by the inetd-upgrade service to ensure that the same set of services which were enabled in the old inetd.conf are enabled once you've upgraded to an SMF-based release, thus preserving the state the administrator had configured on the system prior to the upgrade. It's not intended for use with services that inetconv itself converts, which as you correctly note will be enabled automatically as part of the conversion. If it's altering other portions of the service configuration that may well be a bug. Dave