Systemd script for Linux agent.
search cancel

Systemd script for Linux agent.

book

Article ID: 229824

calendar_today

Updated On:

Products

CA Automic One Automation

Issue/Introduction

Is there a startup script for the Linux agent only?

Environment

Release : 12.3

Component : AUTOMATION ENGINE

Cause

Configuartion.

Resolution

Automic provides an init.d script called automicsm which is part of the Service Manager, but not a script to start the Linux agent by itself.

Here's a simple systemd script to stop/start the Linux agent.

[Unit]
Description=Automic Linux Agent

[Service]
WorkingDirectory=/opt/Automic/Automation.Platform/Agents/unix/bin
ExecStart=/opt/Automic/Automation.Platform/Agents/unix/bin/ucxjlx6
User=root
Type=simple

[Install]
WantedBy=multi-user.target

 

[root@system]# systemctl status linux.agent.service
● linux.agent.service - Automic Linux Agent
   Loaded: loaded (/etc/systemd/system/linux.agent.service; disabled; vendor preset: disabled)
   Active: active (running) since Sat 2021-12-04 19:45:50 UTC; 1 day 22h ago
 Main PID: 31618 (ucxjlx6)
   CGroup: /system.slice/linux.agent.service
           ├─31618 /opt/Automic/Automation.Platform/Agents/unix/bin/ucxjlx6
           └─31624 ucxjlx6-listener

Dec 04 19:45:50 systemd[1]: Started Automic Linux Agent.