Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Minor fixes- init.d script return status info , and file close calls are fixed #5

Merged
merged 2 commits into from over 2 years ago

2 participants

Ranjib Dey shawn-sterling
Ranjib Dey

No description provided.

shawn-sterling shawn-sterling merged commit 7b3f112 into from
shawn-sterling
Owner

Thank you very much for the patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 2 unique commits by 1 author.

Apr 02, 2012
Ranjib Dey Ranjib|init.d script should return appropriate exit value a538d0d
Ranjib Dey Ranjib| Fixing the close calls b0560e4
This page is out of date. Refresh to see the latest.

Showing 2 changed files with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 0  graphios.init
  2. +2 2 graphios.py
2  graphios.init
@@ -56,6 +56,8 @@ case "$1" in
56 56 ;;
57 57 status)
58 58 status $prog
  59 + RETVAL=$?
  60 + ;;
59 61 *)
60 62 echo "Usage: service graphios {start|stop|restart|reload}"
61 63 RETVAL=2
4 graphios.py
@@ -171,7 +171,7 @@ def process_host_data(file_name, delete_after=0):
171 171 try:
172 172 f = open(file_name, "r")
173 173 file_array = f.readlines()
174   - f.close
  174 + f.close()
175 175 except Exception, e:
176 176 log.critical("Can't open file:%s error: %s" % (file_name, e))
177 177 sys.exit(2)
@@ -306,7 +306,7 @@ def process_service_data(file_name, delete_after=0):
306 306 try:
307 307 f = open(file_name, "r")
308 308 file_array = f.readlines()
309   - f.close
  309 + f.close()
310 310 except Exception, e:
311 311 log.critical("Can't open file:%s error: %s" % (file_name, e))
312 312 sys.exit(2)

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.