[Unit] Description=Hermes Agent Gateway - Messaging Platform Integration After=network-online.target Wants=network-online.target StartLimitIntervalSec=0 [Service] Type=simple User=root Group=root ExecStart=/usr/local/lib/hermes-agent/venv/bin/python -m hermes_cli.main gateway run WorkingDirectory=/root/.hermes Environment="HOME=/root" Environment="USER=root" Environment="LOGNAME=root" Environment="PATH=/usr/local/lib/hermes-agent/venv/bin:/usr/local/lib/hermes-agent/node_modules/.bin:/root/.hermes/node/bin:/root/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" Environment="VIRTUAL_ENV=/usr/local/lib/hermes-agent/venv" Environment="HERMES_HOME=/root/.hermes" Restart=always RestartSec=5 RestartForceExitStatus=75 KillMode=mixed KillSignal=SIGTERM ExecReload=/bin/kill -USR1 $MAINPID ExecStopPost=-/usr/local/lib/hermes-agent/venv/bin/python -m gateway.cgroup_cleanup TimeoutStopSec=90 StandardOutput=journal StandardError=journal [Install] WantedBy=multi-user.target