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

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

book

Article ID: 50705

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) Workload Automation Agent

Issue/Introduction

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):

  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

Environment

Release: ATSY1C99000-4.5-AutoSys-Job Management-Class 1 Remote Agent
Component: