mirror of
https://github.com/ceph/ceph
synced 2025-04-07 01:54:01 +00:00
script clean up
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
This commit is contained in:
parent
9ea95a0e0b
commit
c45a415ced
@ -27,13 +27,9 @@ sub get_status {
|
|||||||
my $service = "radosgw";
|
my $service = "radosgw";
|
||||||
my $cmd = "ps -ef | grep $service | grep -v grep";
|
my $cmd = "ps -ef | grep $service | grep -v grep";
|
||||||
my $status = get_cmd_op($cmd);
|
my $status = get_cmd_op($cmd);
|
||||||
if (!$status) {
|
if ($status =~ /client.radosgw.gateway/ ){
|
||||||
my $cmd1 = "echo $?";
|
|
||||||
my $status1 = get_cmd_op($cmd1);
|
|
||||||
if (!$status1){
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ print "adding file to bucket: $mytestfilename\n";
|
|||||||
print "Downloading $mytestfilename to temp file: /tmp/downloadfilepurgeme...";
|
print "Downloading $mytestfilename to temp file: /tmp/downloadfilepurgeme...";
|
||||||
$response = $bucket->get_key_filename( $mytestfilename, 'GET', '/tmp/downloadfilepurgeme' )
|
$response = $bucket->get_key_filename( $mytestfilename, 'GET', '/tmp/downloadfilepurgeme' )
|
||||||
or die $s3->err . ": " . $s3->errstr;
|
or die $s3->err . ": " . $s3->errstr;
|
||||||
$logmsg = "file dowloaded";
|
$logmsg = "file downloaded";
|
||||||
_write_log_entry($logmsg);
|
_write_log_entry($logmsg);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user