1 |
commit: 1669cd44bdc753d25f560e6963f2151893ceda0f |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 1 21:09:21 2017 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 1 21:15:11 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1669cd44 |
7 |
|
8 |
app-admin/consul-template: revbump to 0.18.5-r1 for bug 628542 |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.2 |
11 |
|
12 |
...8.5.ebuild => consul-template-0.18.5-r1.ebuild} | 0 |
13 |
.../consul-template/files/consul-template.initd | 29 +++++++--------------- |
14 |
2 files changed, 9 insertions(+), 20 deletions(-) |
15 |
|
16 |
diff --git a/app-admin/consul-template/consul-template-0.18.5.ebuild b/app-admin/consul-template/consul-template-0.18.5-r1.ebuild |
17 |
similarity index 100% |
18 |
rename from app-admin/consul-template/consul-template-0.18.5.ebuild |
19 |
rename to app-admin/consul-template/consul-template-0.18.5-r1.ebuild |
20 |
|
21 |
diff --git a/app-admin/consul-template/files/consul-template.initd b/app-admin/consul-template/files/consul-template.initd |
22 |
index 8274f7dab3f..f968d8d0861 100644 |
23 |
--- a/app-admin/consul-template/files/consul-template.initd |
24 |
+++ b/app-admin/consul-template/files/consul-template.initd |
25 |
@@ -1,31 +1,20 @@ |
26 |
#!/sbin/openrc-run |
27 |
-# Copyright 2015-2016 Gentoo Foundation |
28 |
+# Copyright 2015-2017 Gentoo Foundation |
29 |
# Distributed under the terms of the GNU General Public License v2 |
30 |
|
31 |
description="consul-template agent" |
32 |
-group=${group:-${SVCNAME}} |
33 |
-pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"} |
34 |
-user=${user:-${SVCNAME}} |
35 |
+user=${user:-${RC_SVCNAME}} |
36 |
+group=${group:-${RC_SVCNAME}} |
37 |
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} |
38 |
|
39 |
-command="/usr/bin/${SVCNAME}" |
40 |
-command_args="agent -config-dir=/etc/consul-template.d ${command_args}" |
41 |
+command="/usr/bin/${RC_SVCNAME}" |
42 |
+command_args="-config=/etc/consul-template.d ${command_args}" |
43 |
command_background="true" |
44 |
start_stop_daemon_args="--user ${user} --group ${group} \ |
45 |
- --stdout /var/log/${SVCNAME}/${SVCNAME}.log \ |
46 |
- --stderr /var/log/${SVCNAME}/${SVCNAME}.log" |
47 |
+ --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \ |
48 |
+ --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" |
49 |
+stopsig="SIGINT" |
50 |
|
51 |
depend() { |
52 |
need net |
53 |
- after net |
54 |
-} |
55 |
- |
56 |
-start_pre() { |
57 |
- checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}" |
58 |
-} |
59 |
- |
60 |
-stop() { |
61 |
- # SIGINT is required for graceful shutdown of consul-template |
62 |
- ebegin "Stopping ${SVCNAME}" |
63 |
- start-stop-daemon --stop --signal SIGINT --pidfile "${pidfile}" |
64 |
- eend $? |
65 |
} |