diff options
author | Ultrabug <ultrabug@gentoo.org> | 2014-06-03 19:16:48 +0200 |
---|---|---|
committer | Ultrabug <ultrabug@gentoo.org> | 2014-06-03 19:16:48 +0200 |
commit | dbd8c0ca2dad4b23f1a0d45c00b3e1f03127f9dd (patch) | |
tree | ff92830804c6cd00bd77aa6356379f6957129d85 /app-admin | |
parent | consul init script enhancement (diff) | |
download | ultrabug-dbd8c0ca2dad4b23f1a0d45c00b3e1f03127f9dd.tar.gz ultrabug-dbd8c0ca2dad4b23f1a0d45c00b3e1f03127f9dd.tar.bz2 ultrabug-dbd8c0ca2dad4b23f1a0d45c00b3e1f03127f9dd.zip |
consul init script cleanup, fix stop
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/consul/files/consul-agent.initd | 22 |
1 files 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 |