Add a new service to run Argo tunnel automatically
Create a file into /etc/systemd/system
folder named myfirst.service
with the following content:
[Unit]
Description=Argo Tunnel
After=network.target
[Service]
TimeoutStartSec=0
Type=notify
ExecStart=/usr/local/bin/cloudflared --config /etc/cloudflared/config-ssh.yml --origincert /etc/cloudflared/cert-vence-fun.pem --no-autoupdate
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target
To start it run sudo systemctl start myfirst
To start the service at boot run sudo systemctl enable myfirst
To stop it that service run sudo systemctl stop myfirst
Moved to Tunnel UI
In order to move to tunnel UI, you need to first delete those services:
- cloudflared.service
- cloudflared-update.service
- cloudflared-update.timer
On Linux you need to follow those steps:
systemctl stop [servicename]
systemctl disable [servicename]
rm /etc/systemd/system/[servicename]
rm /etc/systemd/system/[servicename] # and symlinks that might be related
systemctl daemon-reload
systemctl reset-failed
To note: If the connector is not shown on the UI, please make sure to update cloudflared cloudflared update