From 7310a2679e0c14fd98c66359caff2c69282fdba2 Mon Sep 17 00:00:00 2001 From: Mikhail Zholobov Date: Sat, 27 May 2017 21:38:07 +0200 Subject: [PATCH] Revert "Merge pull request #433 from zanox/master" (partially) This reverts commit a0595fbbeea1780d117e9fe824ea64653b9b080c, reversing changes made to b4c3c47b06e9c4766e95082a553151aab92f6e9a. --- templates/default/sysvinit.service.erb | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/templates/default/sysvinit.service.erb b/templates/default/sysvinit.service.erb index c55c6fac..50da5b48 100755 --- a/templates/default/sysvinit.service.erb +++ b/templates/default/sysvinit.service.erb @@ -37,8 +37,6 @@ _start() { --pidfile $pidfile<% unless @pid_file_external %> --make-pidfile<% end %> \ --chuid $user --chdir "<%= @directory %>" \ --startas /bin/bash -- -c "exec $exec <%= @daemon_options %> >> $logfile 2>&1" - - _wait_for_listening } _stop() { @@ -109,25 +107,6 @@ _status_q() { _status >/dev/null 2>&1 } -_wait_for_listening() { - echo -n "Waiting for consul daemon to be listening..." - for i in `seq 1 30`; do - sleep 1 - # if ! start-stop-daemon --quiet --stop --test --pidfile $pidfile --user $user; then - if ! _status_q; then - echo " FAIL: consul process died" - return 2 - fi - if "$exec" info >/dev/null; then - echo " OK" - return 0 - fi - echo -n . - done - echo " FAIL: consul process is alive, but is not listening." - return 2 -} - case "$1" in start) _status_q && exit 0