search cancel

Configure Harvest to Auto Restart


Article ID: 132556


Updated On:


CA Harvest Software Change Manager - OpenMake Meister


How can I configure the SCM Broker on my Linux server to automatically restart when the server is rebooted?

On the Linux/Unix platforms, Harvest does not, on its own install itself as a service that automatically restarts when the machine reboots. This happens on the Windows side, but not on Linux or Unix. Instead, this is done manually after installing the SCM Broker.


CA Harvest SCM on Redhat Linux 5.x and 6.x


Here is a suggested procedure for configuring Harvest to automatically restart when the server is rebooted:

Setup for auto start (redhat 5x and 6x):

Create a file called "/etc/init.d/cascm" as the root user, containing the following.

# chkconfig: 345 99 10
# description: CA SCM auto start-stop script.
# Set SCM_OWNER to the user id of the owner of the 
# Oracle database software.


case "$1" in
        # Start the CA SCM broker
        su $SCM_OWNER -c "/home/cascm/scripts/ >> /home/cascm/scripts/startup_shutdown.log 2>&1" &
        # Stop the CA SCM broker
        su $SCM_OWNER -c "/home/cascm/scripts/ >> /home/cascm/scripts/startup_shutdown.log 2>&1"

Use the chmod command to set the privileges to 750.

chmod 750 /etc/init.d/cascm

Associate the "cascm" service with the appropriate run levels and set it to auto-start using the following command.

chkconfig --add cascm

Next, we must create the "" and "" scripts in the "/home/cascm/scripts". First create the directory.

mkdir -p /home/cascm/scripts
chown -R cascm:cascm /home/cascm/scripts

The "/home/cascm/scripts/" script should contain the following commands.

ps -ef | grep scm

The "/home/cascm/scripts/" script is similar.

. /opt/CA/pec/bin/
/opt/CA/pec/bin/i86_linux24/rtserver.x -stop_all
ps -ef | grep scm

Make sure the permissions and ownership of the files is correct.

chmod u+x /home/cascm/scripts/ /home/cascm/scripts/
chown cascm:cascm /home/cascm/scripts/ /home/cascm/scripts/

The scm broker will now start and stop automatically with the machine. You can test them using the following command as the "root" user.

# service cascm start
# service cascm stop