Gentoo Archives: gentoo-commits

From: Alexys Jacob <ultrabug@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/ultrabug:master commit in: app-admin/consul/files/
Date: Tue, 03 Jun 2014 17:16:55
Message-Id: 1401815808.dbd8c0ca2dad4b23f1a0d45c00b3e1f03127f9dd.ultrabug@gentoo
1 commit: dbd8c0ca2dad4b23f1a0d45c00b3e1f03127f9dd
2 Author: Ultrabug <ultrabug <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 3 17:16:48 2014 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 3 17:16:48 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/ultrabug.git;a=commit;h=dbd8c0ca
7
8 consul init script cleanup, fix stop
9
10 ---
11 app-admin/consul/files/consul-agent.initd | 22 +++++++++++-----------
12 1 file changed, 11 insertions(+), 11 deletions(-)
13
14 diff --git a/app-admin/consul/files/consul-agent.initd b/app-admin/consul/files/consul-agent.initd
15 index 24d7889..c516eb9 100644
16 --- a/app-admin/consul/files/consul-agent.initd
17 +++ b/app-admin/consul/files/consul-agent.initd
18 @@ -18,23 +18,23 @@ depend() {
19 use net
20 }
21
22 +reload() {
23 + ebegin "Reloading ${SVCNAME}"
24 + start-stop-daemon --signal SIGHUP --pidfile "${pidfile}"
25 + eend $?
26 +}
27 +
28 stop() {
29 # We need to override the default stop function
30 # because it uses SIGTERM whereas consul needs a SIGINT
31 # to shutdown gracefully
32 - ebegin "Stopping ${SVCNAME}"
33 - start-stop-daemon --signal SIGINT --pidfile "${pidfile}"
34 - eend $?
35 -}
36 -
37 -reload() {
38 - ebegin "Reloading ${SVCNAME}"
39 - start-stop-daemon --signal SIGHUP --pidfile "${pidfile}"
40 + ebegin "Stopping ${SVCNAME}"
41 + start-stop-daemon --stop --signal SIGINT --pidfile "${pidfile}"
42 eend $?
43 }
44
45 telemetry() {
46 - ebegin "Logging telemetry for ${SVCNAME}"
47 - start-stop-daemon --signal SIGUSR1 --pidfile "${pidfile}"
48 - eend $?
49 + ebegin "Logging telemetry for ${SVCNAME}"
50 + start-stop-daemon --signal SIGUSR1 --pidfile "${pidfile}"
51 + eend $?
52 }
53 \ No newline at end of file