abique / hefur

Standalone C++ BitTorrent tracker
MIT License
192 stars 30 forks source link

hefurd does not load torrents from /var/lib/herurd/ on start #13

Closed glenntanner3 closed 8 years ago

glenntanner3 commented 8 years ago

If hefurd is restarted, all torrents have to be manually re-added rather than all torrents in configured directory /var/lib/hefurd/ getting automatically reloaded.

glenntanner3 commented 8 years ago

Modified hefurd.service and added: ExecStartPost=/usr/share/hefur/load.sh

load.sh

!/bin/bash

for f in /var/lib/hefurd/*.torrent;do hefurctl -add-torrent ${f} done

glenntanner3 commented 8 years ago

Again torrent file permission issue #12