Files
self-directed-learning/deploy/krystie-hermes-gateway.service
T
Hermes Agent 5401ec6ff7 deploy: ship krystie-hermes-gateway.service + README update
Permanent fix for the recurring 'Krystie's UMP writes silently drop'
problem. Kills the last manual-process row from the drift stack by
moving krystie's hermes-cli gateway under systemd.

Two new assets in deploy/:
  - krystie-hermes-gateway.service
  - README.md sections describing install + the manual-to-systemd
    migration steps

Run from a non-gateway shell to swap:
  sudo cp deploy/krystie-hermes-gateway.service /etc/systemd/system/
  sudo systemctl daemon-reload
  sudo systemctl enable --now krystie-hermes-gateway.service
2026-07-13 21:48:54 -07:00

28 lines
808 B
Desktop File

[Unit]
Description=Hermes Gateway — krystie profile (Telegram session)
After=network.target ump-memory.service ump-recall-sidecar.service
Wants=ump-memory.service ump-recall-sidecar.service
[Service]
Type=simple
User=root
WorkingDirectory=/root
ExecStart=/usr/local/lib/hermes-agent/venv/bin/python -m hermes_cli.main gateway run -p krystie --replace
# Always restart — handles OOM kills, hot reloads, dev iterations.
# --replace ensures only one instance owns the Telegram connection.
Restart=always
RestartSec=5
# Graceful shutdown — gives Telegram polling time to ACK disconnect
KillSignal=SIGINT
TimeoutStopSec=30
# Logging — flows through journal with this identifier
StandardOutput=journal
StandardError=journal
SyslogIdentifier=hermes-gateway-krystie
[Install]
WantedBy=multi-user.target