Build from Source

Building from Source

If you would like to install your agent using our source, you can do so through our GitHub repo.

Mandatory Variables

Variable NameDescription
SYNTROPY_API_KEYSYNTROPY Network Agent Token (String)

👍

API Key Example

SYNTROPY_API_KEY=nQlSAezB8yxncfPeW#$2mKR4UTqEQ2R5

Installation

1. Clone Repo

git clone https://github.com/SyntropyNet/syntropy-agent.git

2. Build Syntropy Agent

cd syntropy-agent
sudo make

2. Create/Edit /etc/systemd/system/syntropy-agent.service.d/10-vars.conf file

[Service]
# Required parameters
Environment=SYNTROPY_API_KEY=<<agent_token>>

3. Create /etc/systemd/system/syntropy-agent.service file:

[Unit]
Description=Syntropy Platform Agent
After=multi-user.target

[Service]
Type=simple
Restart=always
RestartSec=1
ExecStart=/usr/local/bin/syntropy_agent run

[Install]
WantedBy=multi-user.target

4. Start Syntropy Agent

sudo systemctl daemon-reload
sudo systemctl enable --now syntropy-agent

Next step

Customize your installation with Syntropy Agent Variables