diff --git a/README.md b/README.md index 9bf2d5f..0387f09 100644 --- a/README.md +++ b/README.md @@ -80,10 +80,10 @@ pip install -r requirements.txt #### 4. Running as a Service To run the server continuously in production using Gunicorn: ```bash -sudo cp fleet-control.service /etc/systemd/system/ +sudo cp fleet-console.service /etc/systemd/system/ sudo systemctl daemon-reload -sudo systemctl enable fleet-control -sudo systemctl start fleet-control +sudo systemctl enable fleet-console +sudo systemctl start fleet-console ``` *(Ensure the `.service` file points to the `gunicorn` executable inside your `venv`)*. @@ -165,10 +165,10 @@ pip install -r requirements.txt #### 4. Esecuzione come Servizio (systemd) Per eseguire il server in produzione in modo continuo e stabile con Gunicorn: ```bash -sudo cp fleet-control.service /etc/systemd/system/ +sudo cp fleet-console.service /etc/systemd/system/ sudo systemctl daemon-reload -sudo systemctl enable fleet-control -sudo systemctl start fleet-control +sudo systemctl enable fleet-console +sudo systemctl start fleet-console ``` *(Assicurati che il file `.service` punti all'eseguibile `gunicorn` situato all'interno della cartella `venv`).* diff --git a/install.txt b/install.txt index f563910..8a22a6a 100644 --- a/install.txt +++ b/install.txt @@ -61,7 +61,7 @@ ExecStart=/opt/fleet-control-server/venv/bin/gunicorn -k ... Configuration: 1. Copy .service file to '/etc/systemd/system/': - sudo cp fleet-control.service /etc/systemd/system/ + sudo cp fleet-console.service /etc/systemd/system/ 2. Reload systemd: sudo systemctl daemon-reload 3. Enable on boot: sudo systemctl enable fleet-console 4. Start service: sudo systemctl start fleet-console @@ -122,7 +122,7 @@ WorkingDirectory=/opt/fleet-control-server ExecStart=/opt/fleet-control-server/venv/bin/gunicorn -k ... Passaggi: -1. Copia il file in systemd: sudo cp fleet-control.service /etc/systemd/system/ +1. Copia il file in systemd: sudo cp fleet-console.service /etc/systemd/system/ 2. Ricarica la configurazione: sudo systemctl daemon-reload 3. Abilita all'avvio: sudo systemctl enable fleet-console 4. Avvia il servizio: sudo systemctl start fleet-console diff --git a/systemd/fleet-control.service b/systemd/fleet-console.service similarity index 100% rename from systemd/fleet-control.service rename to systemd/fleet-console.service