AutoSys Workload Automation

  • 1.  init.d script examples

    Posted Nov 13, 2013 07:35 PM

    Hi folks,

    I'm looking for examples of init.d scripts to start/stop the CA WA DE server and agents for different varients of Unix and Linux. I would like to publish these examples in my CA WA DE Cookbook.  Currently I have one example for Solaris but dont have any for the other platforms.  All donations greatfully receieved smiley.

    Best regards,

    Alan



  • 2.  Re: init.d script examples

    Posted Apr 26, 2016 05:58 PM

    Hello

     

    I am using the above script to try to stop an agent in a unix job.  Sent me an email to hmanos@steelcase.com and I will let you know what I am working on.
    I almost have this script running but the job is not kicking off the script.  I am thinking the job cannot run because it is trying to run as root.



  • 3.  Re: init.d script examples

    Posted Apr 28, 2016 02:17 PM

    I thought in 11.3, UNIX/LINUX agent comes with generic script cybagent.init as a start ?



  • 4.  Re: init.d script examples
    Best Answer

    Posted Apr 28, 2016 03:41 PM

    I have made some modifications to the script that is included.

     

    The script is used on HP-UX, Linux and Solaris.

     

    There is additional information at:

     

    https://communities.ca.com/message/241852196?et=watches.email.thread#241852196

     

    A suggestion from Chandru_V

     

    In the StartESP() function,

    -- Replace "./cybAgent &" with "./cybAgent -a". The -a switch deamonizes the process.



  • 5.  Re: init.d script examples

    Posted Apr 29, 2016 04:50 AM

    Hi Alan

     

    About the startup and shutdown script for your DE R12 Server, you might implement such a script in /etc/init.d on your different platforms.

    This is just a sample  you'll have to customize it  for your environment and test it first by executing it from /etc/init.d

    When it works for you by executing it from /etc/init.d, either create symbolic links in your different /etc/rcx.d directories to call it based on the Unix/Linux run levels, or depending on the platform implement it as a service

    For example , Linux moved away from using init.d to service.  You may want to consider updated scripts for upstart scripts.

    And finally,  simulate a shutdown/boot sequence and also don't forget the reboot sequence

     

    ...............................................................................................................

    #!/bin/sh

    DEHOME=/opt/CA/WorkloadAutomation_R12

    PATH=$PATH:$DEHOME/bin

    export PATH

    rc=0

    case "$1" in

    start)

            $DEHOME/bin/startServer

            rc=$?

            ;;

    stop)

            $DEHOME/bin/stopServer

            rc=$?

            ;;

    esac

    exit $rc

    ...............................................................................................................

     

    Regards

    Jean Paul