This article provides instructions on how to automatically restart Radar agent services, when a reboot occurs across the Linux machine or server where the agent is running.
This method uses Linux services framework and treats the Radar agent as a system service.
To set up auto-restart of your Radar agent:
Download the radar agent binary.
Unzip the binary file.
Create a configuration file with all the required token, team ID and other configs. For more information and example, see Radar Agent Overview.
Create a service file in
/etc/systemd/system/
with a name like radar-agent.serviceInclude the following content in the service file. Include the path to the config file (
/root/myconf.conf
).[Unit] Description=radar agent [Service] Type=simple ExecStart=/usr/bin/runscope-radar -f /root/myconf.conf [Install] WantedBy=multi-user.target
Give 644 permission to the service file:
chmod 644 /etc/systemd/system/radar-agent.service
Reload the daemon:
systemctl daemon-reload
Start the agent:
systemctl start radar-agent.service
Check the status of agent:
systemctl status radar-agent.service
Enable the service:
systemctl enable radar-agent.service
0 Comments