Merge pull request #1280 from ceph/wip-7374-wusui

Fix sub check() to not exit if rgw is running.

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
Yehuda Sadeh 2014-02-25 18:00:37 -08:00
commit 20641b6761

View File

@ -45,7 +45,7 @@ Pod::Usage::pod2usage(-verbose => 1) && exit if ($help);
my $s3;
my $domain = "front.sepia.ceph.com";
my $host = get_hostname();
our $hostname = "$host.$domain";
our $hostname = "$host.$domain:7280";
my $testfileloc;
my $sec;
my $min;
@ -77,7 +77,7 @@ sub get_status {
my $service = "radosgw";
my $cmd = "ps -ef | grep $service | grep -v grep";
my $status = get_cmd_op($cmd);
if ($status =~ /client.radosgw/ ){
if ($status =~ m/client.radosgw/ ){
return 0;
}
return 1;