Tailscale Serve Systemd Service

Navigation

Back to Home

Nextcloud Setup

Tailscale Setup

This service runs tailscale serve to serve a web endpoint via Tailscale.

Systemd Unit Syntax

[Unit]
Description=Serve Nextcloud backend through Tailscale
After=network.target

[Service]
Type=oneshot
ExecStart=/usr/bin/tailscale serve --bg http://127.0.0.1:11000

[Install]
WantedBy=multi-user.target
    

Explanation

How to Run as Daemon

# Reload systemd config
sudo systemctl daemon-reload

# Enable service at boot
sudo systemctl enable tailscale-web.service

# Start service now
sudo systemctl start tailscale-web.service

# Check status
sudo systemctl status tailscale-web.service
    

This page is just a static explanation of the service syntax.