Trigger-it agent supports any Linux distribution that supports mono including RHEL, CentOS, Ubuntu, Mint and many more.
To install Trigger-it agent on Linux you must first obtain the binaries through support engineer or support channel, contact support@sysgravity.com to obtain them.
Once obtained, follow the below steps to install the agent and configure it as a service.
Installing Prerequisites:
- Install Mono: Follow the steps from Mono official website to install mono on your OS: https://www.mono-project.com/download/stable/#download-lin
- Install JDK: apt-get install default-jdk
- Install astop: apt-get install atop
Configure the system to resolve triggerit.triggerit.triggerit to Trigger-it Server IP address, this could be done using hosts file.
Configure the startup script:
Create a file on the installation directory called triggerit (without any extensions) as following:
!/bin/sh
mono ./LynkerAgent.exe P@ssw0rd
Then configure the file permissions as following:
sudo chmod u+x triggerit
Configure Triggerit as a service
Add the service file into /etc/systemd/system/ as following:
vi /etc/systemd/system/triggerit.service
Then configure the service unit as following:
[Unit]
Description=Triggerit Service
[Service]
The configuration file application.properties should be here:
change this to your workspace
WorkingDirectory=/home/admin/Agent
path to executable.
ExecStartPre=/bin/sleep 30
ExecStart=/home/admin/Agent/triggerit
SuccessExitStatus=143
TimeoutStopSec=10
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
Make sure to change the path as per your environment
reload system daemon and enable triggerit service as following
sudo systemctl daemon-reload
sudo systemctl enable triggerit.service
sudo systemctl start triggerit
sudo systemctl stop triggerit
You can run sudo journalctl -f -n 1000 -u triggerit to confirm that service is running correctly.