Skip to content

Commit 25d138a

Browse files
authored
Update remote-management.mdx
1 parent 6915703 commit 25d138a

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

src/content/docs/cloudflare-one/connections/connect-networks/configure-tunnels/remote-management.mdx

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ You can modify the Cloudflare Tunnel service with one or more [general-purpose t
1717

1818
On Linux, Cloudflare Tunnel installs itself as a system service using `systemctl`. By default, the service will be named `cloudflared.service`. To configure your tunnel on Linux:
1919

20-
1. Create `cloudflared.service`.
20+
1. Open `cloudflared.service`.
2121

2222
```sh
23-
sudo systemctl edit --force --full cloudflared.service
23+
sudo systemctl edit --full cloudflared.service
2424
```
2525

2626
2. Modify the `cloudflared tunnel run` command with the desired configuration flag. For example,
@@ -41,23 +41,29 @@ On Linux, Cloudflare Tunnel installs itself as a system service using `systemctl
4141
WantedBy=multi-user.target
4242
```
4343

44-
3. Enable `cloudflared.service` to start when system starts. For example,
44+
3. Restart `cloudflared.service`:
4545

4646
```sh
47-
# restart systemctl
48-
sudo systemctl daemon-reload
49-
50-
# enable and start service
51-
sudo systemctl enable cloudflared
52-
sudo systemctl start cloudflared
53-
54-
# check service status
55-
sudo systemctl status cloudflared
56-
57-
# view system logs if any issues
58-
journalctl -u cloudflared
47+
sudo systemctl restart cloudflared
5948
```
6049

50+
4. To verify the new configuration, check the service status:
51+
52+
```sh
53+
sudo systemctl status cloudflared
54+
```
55+
```sh output
56+
● cloudflared.service - cloudflared
57+
Loaded: loaded (/etc/systemd/system/cloudflared.service; enabled; preset: enabled)
58+
Active: active (running) since Wed 2024-10-09 20:02:59 UTC; 2s ago
59+
Main PID: 2157 (cloudflared)
60+
Tasks: 8 (limit: 1136)
61+
Memory: 16.3M
62+
CPU: 136ms
63+
CGroup: /system.slice/cloudflared.service
64+
└─2157 /usr/bin/cloudflared tunnel --loglevel debug --logfile /var/log/cloudflared/cloudflared.log run --token eyJhIjoi...
65+
```
66+
6167
</TabItem> <TabItem label="macOS">
6268

6369
On macOS, Cloudflare Tunnel installs itself as a launch agent using `launchctl`. By default, the agent will be called `com.cloudflare.cloudflared`. To configure your tunnel on macOS:

0 commit comments

Comments
 (0)