Date: Fri, 7 Aug 2015 14:48:50 +0000 (UTC) From: Steve Wills <swills@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r393695 - in head/net/syncthing-discosrv: . files Message-ID: <201508071448.t77EmoDA090781@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: swills Date: Fri Aug 7 14:48:49 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) Modified: head/net/syncthing-discosrv/Makefile head/net/syncthing-discosrv/files/syncthing-discosrv.in Modified: head/net/syncthing-discosrv/Makefile ============================================================================== --- head/net/syncthing-discosrv/Makefile Fri Aug 7 14:07:45 2015 (r393694) +++ head/net/syncthing-discosrv/Makefile Fri Aug 7 14:48:49 2015 (r393695) @@ -3,7 +3,7 @@ PORTNAME= syncthing-discosrv PORTVERSION= 0.0.0.2015062601 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net MAINTAINER= swills@FreeBSD.org Modified: head/net/syncthing-discosrv/files/syncthing-discosrv.in ============================================================================== --- head/net/syncthing-discosrv/files/syncthing-discosrv.in Fri Aug 7 14:07:45 2015 (r393694) +++ head/net/syncthing-discosrv/files/syncthing-discosrv.in Fri Aug 7 14:48:49 2015 (r393695) @@ -16,7 +16,7 @@ # syncthingdiscosrv_group (group): Set group to run syncthing-discosrv. # Default is "syncthing". # syncthingdiscosrv_dir (dir): Set dir to run syncthing-discosrv in. -# Default is "/var/tmp/syncthing". +# Default is "/var/db/syncthing-discosrv". . /etc/rc.subr @@ -28,15 +28,14 @@ load_rc_config $name : ${syncthingdiscosrv_enable:="NO"} : ${syncthingdiscosrv_user:="syncthing"} : ${syncthingdiscosrv_group:="syncthing"} -: ${syncthingdiscosrv_dir:="/var/tmp/syncthing"} +: ${syncthingdiscosrv_dir:="/var/db/syncthing-discosrv"} export STNORESTART=true -export HOME=${syncthingdiscosrv_dir} pidfile=/var/run/syncthingdiscosrv.pid procname="%%PREFIX%%/bin/syncthing-discosrv" command="/usr/sbin/daemon" -command_args="-f -p ${pidfile} ${procname} ${syncthingdiscosrv_flags}" +command_args="-f -p ${pidfile} ${procname} -db-dir=${syncthingdiscosrv_dir}/db -stats-file=${syncthingdiscosrv_dir}/stats ${syncthingdiscosrv_flags}" start_precmd=syncthingdiscosrv_startprecmd
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508071448.t77EmoDA090781>