]> git.evergreen-ils.org Git - working/OpenSRF.git/commit
LP#1204123 osrf_control warn and exit on bad host
authorBill Erickson <berick@esilibrary.com>
Fri, 30 Aug 2013 18:17:02 +0000 (14:17 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 30 Aug 2013 18:17:02 +0000 (14:17 -0400)
commit30f38bd7fb04c87690354d5ef5e5ba627f5fb13d
tree6e5e509fe666312b3affbb744d418ed057c9434a
parente5d85ea7d4eaabbab2c5c579de2589803017be5c
LP#1204123 osrf_control warn and exit on bad host

Any time a start action is issued (start, start_all, restart,
restart_all), osrf_control will first verify that the selected hostname
(or localhost) hosts the requested service(s).  If not, the user is
warned and the script exits before any action is taken.

Note: we do not make a similar verification for stop and signal actions,
since those may be reasonably be used even when a service is not
configured to run on the selected host.

Thanks to Jason Stephenson for the suggestion.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
bin/opensrf-perl.pl.in