How to set an environment variable for the auto_remote process on Solaris 10 via SM?

Document ID : KB000050705
Last Modified Date : 14/02/2018
Show Technical Document Details


Solaris 10 introduced some changes related to how services are started. The Autosys agent process: auto_remote is managed via the SMF facility. This document outlines a way to add or modify an environment variable for the auto_remote process.


For example, to add /usr/local/lib to the LD_LIBRARY_PATH follow these steps (as root):

  1. Set the variable:

    Syntax: svccfg -s <service name> setenv -m <method name> <variable> <value>
    # svccfg -s network/auto_remote/tcp setenv -m inetd_start LD_LIBRARY_PATH $LD_LIBRARY_PATH:/usr/local/lib

  2. Refresh the service to commit the changes:

    Syntax: svcadm refresh <service name>
    # svcadm refresh network/auto_remote/tcp

  3. Restart inetd to enable the changes:

    Syntax: svcadm restart <service name>
    # svcadm restart inetd