Skip to content

meana-io/meana-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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