From dbd8c0ca2dad4b23f1a0d45c00b3e1f03127f9dd Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Tue, 3 Jun 2014 19:16:48 +0200 Subject: consul init script cleanup, fix stop --- app-admin/consul/files/consul-agent.initd | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'app-admin') 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 -- cgit v1.2.3-65-gdbad