Status: maintained; review after major changes.
This describes how to run the agents as a systemd service that starts on boot and restarts after crashes.
misc/tia-agents.service is provided. Key points:
WorkingDirectory=/home/danny/hyperdata/tiaEnvironmentFile=/home/danny/hyperdata/tia/.env(optional; holds XMPP creds/API keys)ExecStart=/home/danny/hyperdata/tia/start-all-agents.shRestart=on-failurewithRestartSec=5User=dannyWantedBy=multi-user.target- Ensure
logs/exists and is writable by the service user (start scripts default to per-agent log files).
sudo cp /home/danny/hyperdata/tia/misc/tia-agents.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable tia-agents.service # start on boot
sudo systemctl start tia-agents.service # start nowsystemctl status tia-agents.service
journalctl -u tia-agents.service -f- Populate
/home/danny/hyperdata/tia/.env(or per-agent configs inconfig/agents/) with XMPP credentials/resources and any API keys/tokens. - Set
LOG_ROOM_JIDexplicitly and ensure the log room exists on the XMPP server. - Ensure
start-all-agents.shis executable. - Create
logs/and set ownership (e.g.,mkdir -p /home/danny/hyperdata/tia/logs && chown -R danny:danny /home/danny/hyperdata/tia/logs). - If your XMPP server doesn’t support multiple resources on one account, use distinct accounts per agent in
config/agents/{mistral,semem,demo}.ttland restart the service.