ecosystem/systemd/ai-assistants-whatsapp-control.service
text
[Unit]
Description=AI Assistants WhatsApp Control Layer
After=network.target
[Service]
Type=simple
User=root
ExecStart=/bin/bash -lc 'cd "/root/hermes-projects/AI Assistants" && set -a && [ -f .env ] && . ./.env && set +a && exec .venv/bin/uvicorn apps.whatsapp_control_api.app.api.main:app --host ${APP_HOST:-0.0.0.0} --port ${APP_PORT:-8040}'
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target