Use the -l option of the inetadm command to list all the properties of the specified service. Inspect the current values of the properties.
# inetadm -l FMRI
Use the -m option of the inetadm command to change the value of a specified property. Specific information about the properties for a service should be covered in the man page associated with the service.
# inetadm -m FMRI property-name=value
To delete a property value, specify an empty value.
$ inetadm -m svc property=""
List the properties again to make sure that the appropriate change has occurred.
# inetadm -l FMRI
Confirm that the property change has the expected effect.
This example shows how to add or remove an option or argument to the command line of a service that is controlled by inetd. The command that runs when the service starts is the value of the exec property.
Use the -l option of the inetadm command to list all the properties of the specified service so that you can inspect the current value of the exec property. This example shows the svc:/application/x11/xfs service, which is the X Window System font server. See the xfs(1) man page for more information.
$ inetadm -l xfs | grep exec exec="/usr/bin/xfs -inetd"
Use the -m option of the inetadm command to change the value of the exec property of the specified service.
$ inetadm -m xfs exec="/usr/bin/xfs -inetd -config /opt/site/fs/config"
Verify that the property value is changed.
$ inetadm -l xfs | grep exec exec="/usr/bin/xfs -inetd -config /opt/site/fs/config"