inforge service
Operate on already-deployed services over SSH.
inforge service restart
inforge service restart <env> <service> [--ssh-key <path>] [--stack-config <path>]
Restarts the service's systemd unit on every host it deploys to, then verifies the unit is active. Its main use is the last step of a secret value change: services fetch their secrets at start, so after a replaced value merges and deploys, a restart is what makes it live.
Targets (host DNS, unit name, SSH user) come from the infra stack's deployDescriptor output — the
same source inforge releases deploy delivers by — so restart can never disagree
with deploy about where a service lives. Connecting to the stack needs the same backend environment
as a deploy (e.g. PULUMI_CONFIG_PASSPHRASE, plus CLOUDFLARE_ACCOUNT_ID and the R2 credentials for
an r2:// backend).
The SSH key is --ssh-key or the INFORGE_DEPLOY_KEY environment variable (a file path), connecting
as the host's deploy user — the same account releases deploy uses.
Flags
| Flag | Description |
|---|---|
--ssh-key | Path to the SSH deploy key (overrides INFORGE_DEPLOY_KEY). |
--stack-config | Path to the infra stack config file (default: inforge.<env>.yaml). |