Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

docs(gateway): update systemd service naming and uninstall docs

bernie-g982989e84afc
diff --git a/docs/cli/commands/gateway.mdx b/docs/cli/commands/gateway.mdx
index 53226c024b..1a4d9f7385 100644
--- a/docs/cli/commands/gateway.mdx
+++ b/docs/cli/commands/gateway.mdx
@@ -172,8 +172,8 @@ sudo infisical gateway systemd install my-gateway --enroll-method=token --token=
The systemd service is installed with secure defaults:
-- Service file: `/etc/systemd/system/infisical-gateway.service`
-- Config file: `/etc/infisical/gateway.conf`
+- Service file: `/etc/systemd/system/<name>.service`
+- Config file: `/etc/infisical/gateways/<name>.conf`
- Runs with restricted privileges:
- InaccessibleDirectories=/home
- PrivateTmp=yes
@@ -183,15 +183,26 @@ The systemd service is installed with secure defaults:
- Maintains persistent SSH reverse tunnel connections to the specified relay
- Handles certificate rotation and connection recovery automatically
-After installation, manage the service with standard systemd commands:
+After installation, manage the service with standard systemd commands (replace `my-gateway` with your gateway name):
```bash
-sudo systemctl start infisical-gateway # Start the service
-sudo systemctl stop infisical-gateway # Stop the service
-sudo systemctl status infisical-gateway # Check service status
-sudo systemctl disable infisical-gateway # Disable auto-start on boot
+sudo systemctl start my-gateway # Start the service
+sudo systemctl stop my-gateway # Stop the service
+sudo systemctl status my-gateway # Check service status
+sudo systemctl disable my-gateway # Disable auto-start on boot
```
+</Accordion>
+
+<Accordion title="infisical gateway systemd uninstall">
+ Uninstall and remove the gateway systemd service. This command must be run with sudo on Linux.
+
+```bash
+sudo infisical gateway systemd uninstall my-gateway
+```
+
+The gateway name is provided as a positional argument. If no service matching the gateway name is found, it will fall back to removing a legacy `infisical-gateway` service if one exists.
+
</Accordion>
</AccordionGroup>
diff --git a/docs/documentation/platform/gateways/gateway-deployment.mdx b/docs/documentation/platform/gateways/gateway-deployment.mdx
index fda1e01f3a..f66858f53b 100644
--- a/docs/documentation/platform/gateways/gateway-deployment.mdx
+++ b/docs/documentation/platform/gateways/gateway-deployment.mdx
@@ -54,7 +54,7 @@ This guide covers everything you need to deploy and configure Infisical Gateways
--enroll-method=token \
--token=<enrollment-token> \
--domain=<your-infisical-domain>
- sudo systemctl start infisical-gateway
+ sudo systemctl start <gateway-name>
```
</Tab>
<Tab title="Foreground">
@@ -112,7 +112,7 @@ This guide covers everything you need to deploy and configure Infisical Gateways
--enroll-method=aws \
--gateway-id=<gateway-id> \
--domain=<your-infisical-domain>
- sudo systemctl start infisical-gateway
+ sudo systemctl start <gateway-name>
```
</Tab>
<Tab title="Foreground">
@@ -229,7 +229,7 @@ Check gateway logs for detailed error information:
- **systemd service:**
```bash
- sudo journalctl -u infisical-gateway -f
+ sudo journalctl -u <name> -f
```
- **Local installation:** Logs appear in the terminal where you started the gateway
</Accordion>
@@ -246,7 +246,7 @@ For **token-method** gateways, the access token and domain are saved to a config
For **AWS-method** gateways, no JWT is persisted to disk. The gateway re-authenticates by signing a fresh STS request on every start using the host's AWS credentials. Only the gateway id and domain are stored locally.
-For systemd-based installations, the configuration is at `/etc/infisical/gateway.conf`. All config files are created with restricted permissions (0600).
+For systemd-based installations, the configuration is at `/etc/infisical/gateways/<name>.conf`. All config files are created with restricted permissions (0600).
</Accordion>
<Accordion title="Can I run multiple gateways on the same machine?">