<div dir="ltr">Why is not good enough to use systemd’s ways to override specific keys of a service file? I.e., use “systemctl edit etcd” and specify e.g. Environment=<span style="color:rgb(0,0,0);font-size:13.3333px">ETCD_DATA_DIR=/my/path/to/etcd</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 17, 2015 at 4:27 PM, Eric Paris <span dir="ltr"><<a href="mailto:debianbugs@parisplace.org" target="_blank">debianbugs@parisplace.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Package: etcd<br>
Version: 2.0.8-2<br>
Severity: wishlist<br>
<br>
Dear Maintainer,<br>
<br>
The systemd unit file hard codes a working dir and name. It does not have any mechanism for additional configuration. Personally I like the Fedora systemd unit file<br>
<br>
<a href="http://pkgs.fedoraproject.org/cgit/etcd.git/tree/etcd.service" rel="noreferrer" target="_blank">http://pkgs.fedoraproject.org/cgit/etcd.git/tree/etcd.service</a><br>
<br>
Which uses /etc/etcd/etcd.conf as the ENV file.<br>
<br>
The sysinit scripts use /etc/default/etcd but the ENV keys in that file are not the ENV keys which etcd pays attention to. But there should be some way, when using systemd to configure it.<br>
<br>
I got my instalation to work by just putting the Fedora .service file into /etc/systemd/system, but a reasonable default in /lib seems like a good idea.<br>
<br>
-- System Information:<br>
Debian Release: 8.1<br>
APT prefers stable-updates<br>
APT policy: (500, 'stable-updates'), (500, 'stable'), (1, 'experimental')<br>
Architecture: amd64 (x86_64)<br>
<br>
Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)<br>
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)<br>
Shell: /bin/sh linked to /bin/dash<br>
Init: systemd (via /run/systemd/system)<br>
<br>
Versions of packages etcd depends on:<br>
ii adduser 3.113+nmu3<br>
ii libc6 2.19-18<br>
<br>
etcd recommends no packages.<br>
<br>
etcd suggests no packages.<br>
<br>
-- Configuration Files:<br>
/etc/default/etcd changed [not included]<br>
/etc/init.d/etcd changed [not included]<br>
<br>
-- no debconf information<br>
<br>
_______________________________________________<br>
Pkg-go-maintainers mailing list<br>
<a href="mailto:Pkg-go-maintainers@lists.alioth.debian.org">Pkg-go-maintainers@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers" rel="noreferrer" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Best regards,<br>Michael</div>
</div>