6873c9f7db
Root cause of duplicate gateways: hermes update only restarted the systemd service, leaving manually-started gateway processes alive. The two ran simultaneously on different PIDs. Fix: cmd_update now uses get_running_pid() from gateway.status which reads the PID file scoped to HERMES_HOME. This kills only the gateway for THIS installation — safe with multiple Hermes installations on the same machine. Then restarts the systemd service if active. The PID file approach (vs ps aux pattern matching) ensures we never accidentally kill a gateway from a different installation.