[Bug 282646] net/syncthing-1.28 fails to start syncthing-discosrv

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 09 Nov 2024 12:51:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282646

            Bug ID: 282646
           Summary: net/syncthing-1.28 fails to start syncthing-discosrv
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: sgs@pichove.org

syncthing-discosrv fails to start with:
stdiscosrv: error: unknown flag -k, did you mean one of "-h", "-d", "-v"?

In net/syncthing/files/syncthing-discosrv.in in the current port

command_args is defined as:
command_args="-p ${pidfile} ${procname} -key ${syncthingdiscosrv_key} -cert
${syncthingdiscosrv_cert} ${syncthingdiscosrv_args} >>
${syncthingdiscosrv_log_file}"

while the arguments should be:

command_args="-p ${pidfile} ${procname} --key ${syncthingdiscosrv_key} --cert
${syncthingdiscosrv_cert} ${syncthingdiscosrv_args} >>
${syncthingdiscosrv_log_file}"

This also fixes the issue for me.

Kind regards

Simeon Simeonov

-- 
You are receiving this mail because:
You are the assignee for the bug.