Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 741 Bytes

README.md

File metadata and controls

46 lines (37 loc) · 741 Bytes

Meana server agent

How to build an agent

git clone [email protected]:meana-io/meana-agent.git
go build -o ./dist/meana ./cmd/meana-agent/main.go

You need to run agent at least once to create initial configuration file:

cd dist
sudo ./meana
---------------------
Provide meana config
Enter server address: 
Enter UUID: 
---------------------

How to create agent system.d service

sudo nano /etc/systemd/system/meana.service
[Unit]
Description=Meana agent

[Service]
User=root
WorkingDirectory=PATH_TO_AGENT_DIR/dist
ExecStart=PATH_TO_AGENT_DIR/dist/meana
Restart=always

[Install]
WantedBy=multi-user.target
sudo systemctl start meana
sudo systemctl enable meana