Skip to content

Hermes/OpenClaw installers: restart active wn-agent systemd service after upgrade #834

Description

@agent-p1p

Problem

The Hermes and OpenClaw release installers overwrite the wn-agent binary and systemd user unit, run systemctl --user daemon-reload, then call systemctl --user enable --now. As with #832, enable --now starts an inactive unit but does not restart an already-active service. An upgrade can therefore report success while the connector-specific wn-agent process keeps running the old executable and old unit configuration until manual restart or reboot.

Affected paths:

  • scripts/install-hermes-marmot.sh
  • scripts/install-openclaw-marmot.sh

Expected behavior

After replacing the binary/unit and reloading systemd, restart an already-active user service; retain enable --now for inactive/fresh installs and preserve existing no-start/no-service semantics. Add deterministic installer coverage for fresh and active-service upgrade paths.

Scope

Found during adversarial review of #833. PR #833 is correctly scoped to the OpenCode installer and should not be expanded to unrelated connector installers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LOWagent-okThis marks an issue ok to be worked on autonomously by PipbugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions