[pkg-go] Bug#920677: Issue when parsing OPTS in syncthing-relaysrv.service
Jean-Louis Dupond
jean-louis at dupond.be
Mon Jan 28 09:14:28 GMT 2019
Package: syncthing
Version: 1.0.0~ds1-1
Hi,
The syncthing-relaysrv.service sytemd unit file contains the following line:
ExecStart=/usr/bin/strelaysrv -nat=${NAT} ${STRELAYSRV_OPTS}
Now this works fine if you have for example the following in your
defaults file:
STRELAYSRV_OPTS='-pools=""'
But once you have multiple options, it breaks.
This is caused by the parsing in systemctl, see systemd.service(5) for
more info.
The option is to replace
ExecStart=/usr/bin/strelaysrv -nat=${NAT} ${STRELAYSRV_OPTS}
with
ExecStart=/usr/bin/strelaysrv -nat=${NAT} $STRELAYSRV_OPTS
Thanks
Jean-Louis
More information about the Pkg-go-maintainers
mailing list