Updated Systemd (markdown)

oooo-ps 2025-08-10 02:34:33 +03:00
parent 0a6080ec58
commit acbe915fd0

@ -7,9 +7,9 @@ Wants=network.target
Type=simple Type=simple
User=btracker User=btracker
Group=btracker Group=btracker
WorkingDirectory=/path/to/static-and-templates WorkingDirectory=/path/to/public-and-templates
ExecStart=/usr/local/bin/btracker\ ExecStart=/usr/local/bin/btracker\
--preload=/path/to/aquatic-crawler/preload\ --public=./public\
--tracker=udp://[302:68d0:f0d5:b88d::fdb]:6969\ --tracker=udp://[302:68d0:f0d5:b88d::fdb]:6969\
--tracker=udp://tracker.ygg:6969 --tracker=udp://tracker.ygg:6969
StandardOutput=file:/path/to/debug.log StandardOutput=file:/path/to/debug.log
@ -18,4 +18,6 @@ StandardError=file:/path/to/error.log
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
``` ```
* The `WorkingDirectory` path should contain the project `static` and `templates` dirs ([details](https://rocket.rs/guide/v0.5/deploying/#deploying)) * the `WorkingDirectory` path should contain the project `public` and `templates` dirs ([details](https://rocket.rs/guide/v0.5/deploying/#deploying))
* the `public` is usually [aquatic-crawler](https://github.com/YGGverse/aquatic-crawler) `preload` directory, placed to `WorkingDirectory`
* `--canonical-url` argument is skipped in the example but is highly recommended by the RSS feed specification