Automic Workload Automation

 View Only
  • 1.  RH7 script for agent to start after server reboot

    Posted Aug 12, 2020 10:05 AM
    Can somebody help by providing a script that we can put on LINUX RH7 servers using an automic agent (version 12.1.2) that will enable the agent to start automatically after server reboots. We have tried several script we found online and none worked.

    Our linux sys admin doesn't understand automic and our automic specialist doesn't understand linux and we are stuck...

    Am kinda desperate....

    Thank you!

    Vered


  • 2.  RE: RH7 script for agent to start after server reboot

    Posted Aug 12, 2020 12:58 PM
      |   view attached
    I'm assuming that by RH7 you mean Red Hat Enterprise Linux 7, if you're not, this may not be applicable. We run Oracle Enterprise Linux, which is a fork or RHEL.

    The way I handled this is that I set up ServiceManager(UCYBSMGR) as a systemd service.  This allows linux to start and stop ServiceManager, which then stops and starts the agent.  I've configured the agent as normal via uc4.smd and uc4.smc, so you can still stop/start the agent via the AWI administration tab.  Starting and Stopping ServiceManager is as simple as a systemctl start/stop servicemgr, and to start automatically at boot is systemctl enable servicemgr.

    I'll attach the systemd unit file to this reply.
    (Note that we run our agents as a non-privileged user, so you may have to modify the User= and Group= portions of the unit file if you run your agents as root)

    ------------------------------
    Jonathan Roster
    Analyst Programmer, Enterprise Computing Svcs.
    Information Services | Oregon State University
    541-737-4578 | is.oregonstate.edu
    ------------------------------

    Attachment(s)

    txt
    servicemgr.service.txt   851 B 1 version


  • 3.  RE: RH7 script for agent to start after server reboot

    Posted Aug 13, 2020 01:50 AM
    Jonathan - yes, indeed meant REDHAT7. I am forwarding your reply to our experts and hopefully this will resolve our issue.

    Thanks,

    Vered


  • 4.  RE: RH7 script for agent to start after server reboot
    Best Answer

    Posted Aug 13, 2020 03:58 AM

    Hello Vered,

    Indeed, systemd is the better way on managing UC4 Service Manager.

    We are using this to manage our UC4 Service Managers on our non-cluster Linux machines.

    Below link should help you.

    https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/chap-Managing_Services_with_systemd#tabl-Managing_Services_with_systemd-Unit_Sec_Options



    ------------------------------
    Regards,
    Carlos
    ------------------------------