search pid whether exists or not
This commit is contained in:
@ -134,7 +134,7 @@ class Kernel(BaseComponent):
|
||||
curuid=`id -u`| xargs ls -l | awk '{if ($NF==\"%s\") print $(NF-2)}' \
|
||||
| awk -F/ '{print $3 }'" % (self.instInfo.datadir)
|
||||
(status, rightpid) = subprocess.getstatusoutput(cmd)
|
||||
if rightpid:
|
||||
if rightpid or status != 0:
|
||||
GaussLog.exitWithError(output)
|
||||
|
||||
def isPidFileExist(self):
|
||||
|
Reference in New Issue
Block a user