Install the background agent on a headless Linux server
-
These instructions will install the background agent on CentOS, Redhat, or Fedora as a systemd daemon:
Login as root with sudo su - and run these commands:
wget https://s3.amazonaws.com/triggercmdagents/triggercmdagent-1.0.1.x86_64.rpm yum reinstall ./triggercmdagent-1.0.1.x86_64.rpm node /usr/share/triggercmdagent/resources/app/src/agent.js --console (Enter your token) (Press CTRL-C to exit the foreground agent) sh /usr/share/triggercmdagent/resources/app/src/installdaemon.sh systemctl status triggercmdagent
Edit your /root/.TRIGGERcmdData/commands.json file to add background commands.
-