mirror of
https://github.com/deunix-educ/voice-assistant.git
synced 2026-10-13 00:11:57 +02:00
make-agent
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
||||
|
||||
SHELL := /bin/bash
|
||||
PREFIX := /opt/voice-agent
|
||||
CONFIG_DIR := /etc/voice-agent
|
||||
CONFIG_DIR := /etc/voice-assistant
|
||||
# Mêmes versions que le serveur (server/pyproject.toml).
|
||||
DEPS := paho-mqtt==2.1.0 PyYAML==6.0.2
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Agent de l'assistant vocal (étape 15b) : UNE machine Linux commandée par la voix.
|
||||
#
|
||||
# Installé par « make agent-install » dans /etc/voice-agent/agent.yaml (lisible par root
|
||||
# Installé par « make agent-install » dans /etc/voice-assistant/agent.yaml (lisible par root
|
||||
# seulement : il peut contenir un mot de passe MQTT). Après modification :
|
||||
# sudo systemctl restart voice-agent
|
||||
#
|
||||
|
||||
@@ -5,7 +5,7 @@ After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/voice-agent/.venv/bin/python /opt/voice-agent/voice_agent.py --config /etc/voice-agent/agent.yaml
|
||||
ExecStart=/opt/voice-agent/.venv/bin/python /opt/voice-agent/voice_agent.py --config /etc/voice-assistant/agent.yaml
|
||||
# Relancé s'il s'arrête (broker absent au démarrage, plantage...) : l'agent doit toujours répondre.
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
Reference in New Issue
Block a user