From 8cbc3c1edcee1523e8ceb867f2f69eeaea30c092 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 21 Nov 2013 16:37:38 -0500 Subject: [PATCH] recover osrf_control router start With the addition of service verification, which ensures that a service is meant to run on the requested host, we lost the ability to start the router by itself, since the router is never explicitly configured to run anywhere. This patch assumes the router is always a valid service. Signed-off-by: Bill Erickson --- bin/opensrf-perl.pl.in | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/opensrf-perl.pl.in b/bin/opensrf-perl.pl.in index 9793569..6787d42 100755 --- a/bin/opensrf-perl.pl.in +++ b/bin/opensrf-perl.pl.in @@ -102,6 +102,7 @@ my $PY_COMMAND = "opensrf.py -f $opt_config -p $opt_pid_dir ". ($opt_localhost ? sub verify_services { my $service = shift; + return 1 if $service and $service eq 'router'; my @services = (@perl_services, map {$_->{service}} @nonperl_services); if (@services) { return 1 unless $service; -- 2.11.0