etcd config is wrong
the /etc/conf.d/etcd
file sets up env vars which etcd reads directly
when run except the openrc init script environment is not passed over…to
workaround this I add the export statement in the conf.d file like
@
export ETCD_VAR1 \
ETCD_VAR2
@
and modify the --exec
parameter of start-stop-daemon
to
@
/usr/bin/env /usr/bin/etcd …
@
or maybe passing a quote wrapped call to --env
like "$(printenv)"
(from redmine: issue id 7161, created on 2017-04-18, closed on 2019-06-19)
- Changesets:
- Revision 8a89854d by Gareth Williams on 2019-03-06T12:48:09Z:
testing/etcd: fix inability to read config options
Fixes #7161
Options in /etc/conf.d/etcd aren't passed to the daemon. This patch
configures etcd to read options from a YAML file instead.