Changed status() to be case-sensitive of process
This commit is contained in:
parent
70ccadc611
commit
0f45029827
1 changed files with 2 additions and 2 deletions
|
@ -75,8 +75,8 @@ def main():
|
||||||
# Sample output lines:
|
# Sample output lines:
|
||||||
# Process 'name' Running
|
# Process 'name' Running
|
||||||
# Process 'name' Running - restart pending
|
# Process 'name' Running - restart pending
|
||||||
parts = line.lower().split()
|
parts = line.split()
|
||||||
if len(parts) > 2 and parts[0] == 'process' and parts[1] == "'%s'" % name:
|
if len(parts) > 2 and parts[0] == 'Process' and parts[1] == "'%s'" % name:
|
||||||
return ' '.join(parts[2:])
|
return ' '.join(parts[2:])
|
||||||
else:
|
else:
|
||||||
return ''
|
return ''
|
||||||
|
|
Loading…
Reference in a new issue