From caa10d7d3f4611e78918091dba6e40b2f37f6ba8 Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Wed, 2 Jun 2021 09:43:12 -0400 Subject: [PATCH] LP1930578: Really Stop Single Services Use the same timeout / escalation method for single services as is used for all services. Punted on any real refactoring for now. Signed-off-by: Jason Boyer Signed-off-by: Galen Charlton --- bin/opensrf-perl.pl.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/opensrf-perl.pl.in b/bin/opensrf-perl.pl.in index 40015e3..3c3e8d7 100755 --- a/bin/opensrf-perl.pl.in +++ b/bin/opensrf-perl.pl.in @@ -449,7 +449,12 @@ sub do_start_services { sub do_signal { my $service = shift; my $signal = shift; - return do_signal_all($signal, $service); + do_signal_send($service, $signal); + + # if user passed a know non-shutdown signal, we're done. + return 1 if $signal =~ /HUP|USR1|USR2/; + + return do_signal_wait($service); } # returns the list of running services based on presence of PID files. -- 2.11.0