Description:
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.
Solution:
For example, to add /usr/local/lib to the LD_LIBRARY_PATH follow these steps (as root):
- 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
- Refresh the service to commit the changes:
Syntax: svcadm refresh <service name>
# svcadm refresh network/auto_remote/tcp
- Restart inetd to enable the changes:
Syntax: svcadm restart <service name>
# svcadm restart inetd