Skip to content

Systemd

oooo-ps edited this page May 27, 2026 · 11 revisions
#/etc/systemd/system/btracker.service
[Unit]
After=network.target
Wants=network.target

[Service]
Type=simple
User=btracker
Group=btracker
WorkingDirectory=/path/to/public-and-templates
ExecStart=/usr/local/bin/btracker\
        --public=./public\
        --scrape=udp://[202:68d0:f0d5:b88d:1d1a:555e:2f6b:3148]:6969\
        --tracker=udp://[202:68d0:f0d5:b88d:1d1a:555e:2f6b:3148]:6969
# https://github.com/rwf2/Rocket/issues/2951
# StandardOutput=file:/path/to/debug.log
StandardOutput=null
StandardError=file:/path/to/error.log

[Install]
WantedBy=multi-user.target
  • the WorkingDirectory path should contain the project public and templates dirs (details)
    • the public is usually aquatic-crawler preload directory, placed into WorkingDirectory
  • --canonical-url argument is skipped in the example but is highly recommended by the RSS feed specification

Clone this wiki locally