Skip to content
Andriy Lysnevych edited this page Apr 18, 2019 · 1 revision

Running as a service in Ubuntu

/etc/systemd/system/tracker.service:

[Unit]
Description=WebTorrent Tracker

[Service]
Type=simple
Restart=always
RestartSec=1
User=tracker
WorkingDirectory=/opt/wt-tracker
ExecStart=/opt/wt-tracker/bin/wt-tracker

[Install]
WantedBy=multi-user.target

Managing the service:

systemctl enable|disable|stop|start tracker

Redirect system port to run without superuser

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
sudo apt install iptables-persistent netfilter-persistent
Clone this wiki locally