Bug 202131 - net/syncthing-discosrv rc-script paths
Summary: net/syncthing-discosrv rc-script paths
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-06 15:55 UTC by wraul
Modified: 2015-08-08 17:03 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (swills)


Attachments
Changes made to rc-script (537 bytes, patch)
2015-08-06 15:55 UTC, wraul
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description wraul 2015-08-06 15:55:48 UTC
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.
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-08-07 14:49:33 UTC
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
Comment 2 Steve Wills freebsd_committer freebsd_triage 2015-08-07 14:52:56 UTC
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!
Comment 3 wraul 2015-08-08 17:03:26 UTC
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.