Managing System Services in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

How to Change a Property Value for an inetd Controlled Service

  1. List the properties for the service.

    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
  2. Change a property value.

    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=""
  3. Verify that the property value is changed.

    List the properties again to make sure that the appropriate change has occurred.

    # inetadm -l FMRI
  4. Confirm that the change has taken effect.

    Confirm that the property change has the expected effect.

Example 4-17  Modifying the Command to Execute When an inetd Controlled Service Starts

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"