Procedure to start CSAM automatically at boot-time
search cancel

Procedure to start CSAM automatically at boot-time

book

Article ID: 379675

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

csampmux is not started automatically at boot time. It will be started by the first application that requires csam, for example autorep or jil command on an Autosys Client environment.

Environment

Autosys 12.x - Linux

Resolution

Follow below procedure:

1. create file "csampmux" under /etc/init.d with the following contents being user "root"

#!/bin/sh
#

# Start csampmux at boot time

#__LINUX_INIT_INFO__
# chkconfig: 2345 99 01
# description: csampmux service

### BEGIN INIT INFO
# Provides: csampmux
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 5
# Default-Stop:  0 1 6
# Description: csampmux
### END INIT INFO

#
# Source the CA environment.
#
test -r /etc/profile.CA && { CA_SECTION=ccs; export CA_SECTION; . /etc/profile.CA; unset CA_SECTION; }
#

case "$1" in

    start_msg)
        echo "Start csampmux"
        ;;

    stop_msg)
        echo "Stopping csampmux"
        ;;

    'start')

        /opt/CA/SharedComponents/Csam/SockAdapter/bin/csampmux start

        ;;

    'stop')

        /opt/CA/SharedComponents/Csam/SockAdapter/bin/csampmux stop

        ;;

esac

exit 0

2. chmod 755 /etc/init.d/csampmux

3. chkconfig --level 235 csampmux on

4. run "chkconfig" to check if flags are correctly set

5. Reboot and check if "csampmux" is started.
    If "csampmux" isn't started, then run "journalctl -b" to check why csampmux failed to start