commit:     dbd8c0ca2dad4b23f1a0d45c00b3e1f03127f9dd
Author:     Ultrabug <ultrabug <AT> gentoo <DOT> org>
AuthorDate: Tue Jun  3 17:16:48 2014 +0000
Commit:     Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
CommitDate: Tue Jun  3 17:16:48 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=dev/ultrabug.git;a=commit;h=dbd8c0ca

consul init script cleanup, fix stop

---
 app-admin/consul/files/consul-agent.initd | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/app-admin/consul/files/consul-agent.initd 
b/app-admin/consul/files/consul-agent.initd
index 24d7889..c516eb9 100644
--- a/app-admin/consul/files/consul-agent.initd
+++ b/app-admin/consul/files/consul-agent.initd
@@ -18,23 +18,23 @@ depend() {
        use net
 }
 
+reload() {
+       ebegin "Reloading ${SVCNAME}"
+       start-stop-daemon --signal SIGHUP --pidfile "${pidfile}"
+       eend $?
+}
+
 stop() {
        # We need to override the default stop function
        # because it uses SIGTERM whereas consul needs a SIGINT
        # to shutdown gracefully
-    ebegin "Stopping ${SVCNAME}"
-    start-stop-daemon --signal SIGINT --pidfile "${pidfile}"
-    eend $?
-}
-
-reload() {
-       ebegin "Reloading ${SVCNAME}"
-       start-stop-daemon --signal SIGHUP --pidfile "${pidfile}"
+       ebegin "Stopping ${SVCNAME}"
+       start-stop-daemon --stop --signal SIGINT --pidfile "${pidfile}"
        eend $?
 }
 
 telemetry() {
-    ebegin "Logging telemetry for ${SVCNAME}"
-    start-stop-daemon --signal SIGUSR1 --pidfile "${pidfile}"
-    eend $?
+       ebegin "Logging telemetry for ${SVCNAME}"
+       start-stop-daemon --signal SIGUSR1 --pidfile "${pidfile}"
+       eend $?
 }
\ No newline at end of file

Reply via email to