[pkg-go] Rewrite of etcd init script

Dmitry Smirnov onlyjob at debian.org
Tue Sep 29 02:04:22 UTC 2015


On Monday 28 September 2015 23:39:41 Jelmer Vernooij wrote:
> > for me as I was able to successfully bootstrap etcd member in clean
> > SysV/sid environment using new style config.
> etcd doesn't start with the expected settings.
> 
> Can you reproduce setting up an etcd member in a sid environment?

I already wrote this like 3 lines above: "I was able to successfully 
bootstrap etcd member in clean SysV/sid environment using new style config."

I just repeated this experiment again and everything works perfectly.

Which settings do not work for you, specifically?


> > > That just makes the variables available to the init script, it doesn't
> > > export them - so they're not available to the etcd binary.
> > 
> > This is not what I observe here. Perhaps we could add explicit exports
> > but I wonder how (and why) it does not work for you.
> 
> Even so, how are you expecting this to work? How are these environment
> variables supposed to be picked up by etcd if they're not exported?

Environment variables are exported. You are describing default behaviour of 
"source" or "." (dot) operator which I override with "set -a" which "Export 
all variables assigned to", see "Argument List Processing" section of man 
page [1].

Please check your config.

Also it might help to troubleshooting the problem if you use "debug" instead 
of "start" command when you start "etcd".


[1]: http://manpages.debian.org/cgi-bin/man.cgi?query=dash&apropos=0&sektion=0&manpath=Debian+8+jessie&format=html&locale=en

-- 
Best wishes,
 Dmitry Smirnov.

---

The man who does not do his own thinking is a slave, and is a traitor
to himself and to his fellow-men.
         -- Robert G. Ingersoll, "The Liberty
            of Man, Woman and Child" 1877
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20150929/4e89573c/attachment.sig>


More information about the Pkg-go-maintainers mailing list