Skip to content

Commit 47dbb64

Browse files
adegoodyerranbel
andauthored
Update remote-management.mdx (#16513)
* Update remote-management.mdx Updated instructions to create systemd service for linux. - use sensible log location - add [install] section so service can be enabled - add systemctl commands to enable and start service - add system log command to debug any potential issues * Update remote-management.mdx --------- Co-authored-by: ranbel <[email protected]>
1 parent 6ca80d7 commit 47dbb64

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

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

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,37 @@ On Linux, Cloudflare Tunnel installs itself as a system service using `systemctl
3333
[Service]
3434
TimeoutStartSec=0
3535
Type=notify
36-
ExecStart=/usr/local/bin/cloudflared tunnel --loglevel debug --logfile <PATH> run --token <TOKEN VALUE>
36+
ExecStart=/usr/local/bin/cloudflared tunnel --loglevel debug --logfile /var/log/cloudflared/cloudflared.log run --token <TOKEN VALUE>
3737
Restart=on-failure
3838
RestartSec=5s
39+
40+
[Install]
41+
WantedBy=multi-user.target
42+
```
43+
44+
3. Restart `cloudflared.service`:
45+
46+
```sh
47+
sudo systemctl restart cloudflared
3948
```
4049

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+
4167
</TabItem> <TabItem label="macOS">
4268

4369
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)