]> git.evergreen-ils.org Git - 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)
committerJason Stephenson <jstephenson@mvlc.org>
Wed, 4 Sep 2013 15:07:59 +0000 (11:07 -0400)
commitca94866879192a2ea962ce12d15573aa83115cd8
treecbfc3498937417130e72021d857352ce572135ac
parentf7c7fd436ffdd85abef2f8c76c8e6f59755777ab
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>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
bin/opensrf-perl.pl.in