Skip to content

Commit

Permalink
Merge pull request #7 from madhu72/gm-changes
Browse files Browse the repository at this point in the history
Fixed status header
  • Loading branch information
openmft authored Oct 2, 2020
2 parents 6d15289 + 9577b06 commit 8f73dd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions amf_svc_gm.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ def status(self):
status = 0
count = 0
clist = []
clist.append("%-60s%-12s%-10s" % ('PID FILE', 'PID', 'RUNNING'))
clist.append('-------------------------------------------------------------------------------')
clist.append("%-65s%-12s%-10s" % ('PID FILE', 'PID', 'RUNNING'))
clist.append('------------------------------------------------------------------------------------')
self.run("ps -ef | grep java | cut -c1-30", printflag=False)
for fname in self.pidfiles:
found = False
Expand All @@ -198,7 +198,7 @@ def status(self):
found = True
break

clist.append("%-65s%-12s%-5s" % (filename, pid, found))
clist.append("%-65s%-12s%-10s" % (filename, pid, found))
if not found:
status = 1
if count == 0: status = 1
Expand Down

0 comments on commit 8f73dd8

Please sign in to comment.