Created attachment 159618 [details] Changes made to rc-script Hi I just installed this port and it isn't possible to start the service. Not sure if I'm missing something or if this actually is a bug. It appears that the service tries to create files in /var/syncthing, which doesn't exist. So I changed the rc-script to pass the db and stats paths to the service. See the attached patch. After this the service appears to work correctly.
A commit references this bug: Author: swills Date: Fri Aug 7 14:48:51 UTC 2015 New revision: 393695 URL: https://svnweb.freebsd.org/changeset/ports/393695 Log: net/syncthing-discosrv: update db dir Pass flags to syncthing to set db dir instead of using HOME. While here, pick a better location. PR: 202131 Submitted by: wraul@dbox.se (partly) Changes: head/net/syncthing-discosrv/Makefile head/net/syncthing-discosrv/files/syncthing-discosrv.in
Looks like upstream stopped respecting the HOME environment variable, thanks for the heads up. I was seeing it try to use /var/discosrv not sure why you saw /var/syncthing. Anyway, while here I went ahead and picked a better dir and incorporated your change and bumped PORTREVISION so it should be all good now. Thanks!
That fixed the problem. Thanks for the quick response. You are correct, it was indeed /var/discosrv. I was typing from memory and got it mixed up with /var/tmp/syncthing.