update
This commit is contained in:
@@ -53,6 +53,17 @@ The `system_monitor.py` must be installed on every node you wish to monitor.
|
||||
* Edit `node_config.json` to set the `client_id` (must match the ID in `clients.json`) and MQTT credentials.
|
||||
* (Recommended) Set up a systemd service to run the agent automatically at boot.
|
||||
|
||||
#### ⚙️ Running as a System Service (systemd)
|
||||
To keep the system running continuously and start automatically at boot, use the provided `.service` files:
|
||||
|
||||
1. Copy the appropriate file to the systemd directory:
|
||||
* For Server: `sudo cp systemd/fleet-console.service /etc/systemd/system/`
|
||||
* For Nodes: `sudo cp systemd/fleet-agent.service /etc/systemd/system/`
|
||||
2. Reload the systemd daemon: `sudo systemctl daemon-reload`
|
||||
3. Enable it to start on boot: `sudo systemctl enable fleet-console` (or `fleet-agent`)
|
||||
4. Start the service: `sudo systemctl start fleet-console`
|
||||
5. Check the status: `sudo systemctl status fleet-console`
|
||||
|
||||
---
|
||||
|
||||
<a name="italiano"></a>
|
||||
@@ -104,5 +115,16 @@ Il file `system_monitor.py` va installato su ogni nodo che vuoi monitorare.
|
||||
* Modifica `node_config.json` impostando il `client_id` (deve corrispondere all'ID in `clients.json`) e le credenziali MQTT.
|
||||
* (Consigliato) Crea un servizio systemd per avviare l'agente automaticamente al boot.
|
||||
|
||||
#### ⚙️ Esecuzione come Servizio di Sistema (systemd)
|
||||
Per mantenere il sistema sempre attivo e avviarlo in automatico all'accensione, usa i file `.service` forniti:
|
||||
|
||||
1. Copia il file appropriato nella cartella di systemd:
|
||||
* Per il Server: `sudo cp systemd/fleet-console.service /etc/systemd/system/`
|
||||
* Per i Nodi: `sudo cp systemd/fleet-agent.service /etc/systemd/system/`
|
||||
2. Ricarica i demoni di sistema: `sudo systemctl daemon-reload`
|
||||
3. Abilita l'avvio automatico: `sudo systemctl enable fleet-console` (oppure `fleet-agent`)
|
||||
4. Avvia il servizio: `sudo systemctl start fleet-console`
|
||||
5. Controlla lo stato: `sudo systemctl status fleet-console`
|
||||
|
||||
---
|
||||
*Created by IV3JDV @ ARIFVG - 2026*
|
||||
|
||||
Reference in New Issue
Block a user