mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
Use pgrep radosgw to determine if rados gateway is running.
Fixes: 7528 Signed-off-by: Warren Usui <warren.usui@inktank.com>
This commit is contained in:
parent
fc33eaed0d
commit
5b88856cd2
@ -75,9 +75,9 @@ sub get_timestamp {
|
||||
# Function to check if radosgw is already running
|
||||
sub get_status {
|
||||
my $service = "radosgw";
|
||||
my $cmd = "ps -ef | grep $service | grep -v grep";
|
||||
my $cmd = "pgrep $service";
|
||||
my $status = get_cmd_op($cmd);
|
||||
if ($status =~ m/client.radosgw/ ){
|
||||
if ($status =~ /\d+/ ){
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
|
@ -78,9 +78,9 @@ sub get_timestamp {
|
||||
# Function to check if radosgw is already running
|
||||
sub get_status {
|
||||
my $service = "radosgw";
|
||||
my $cmd = "ps -ef | grep $service | grep -v grep";
|
||||
my $cmd = "pgrep $service";
|
||||
my $status = get_cmd_op($cmd);
|
||||
if ($status =~ m/client.radosgw/ ){
|
||||
if ($status =~ /\d+/ ){
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user