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
------------------------------
Original Message:
Sent: 08-12-2020 07:35 AM
From: Vered Gilad Friedman
Subject: RH7 script for agent to start after server reboot
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