Index: trunk/ganglia_metrics/gmetricd.py |
— | — | @@ -116,6 +116,7 @@ |
117 | 117 | m = portRegex.match(line) |
118 | 118 | if m != None: |
119 | 119 | port = m.group(1) |
| 120 | +gmondFile.close() |
120 | 121 | |
121 | 122 | if addr == None or port == None: |
122 | 123 | sys.stderr.write("Unable to determine multicast address\n") |
— | — | @@ -164,6 +165,9 @@ |
165 | 166 | sys.stdin.close() |
166 | 167 | sys.stdout.close() |
167 | 168 | sys.stderr.close() |
| 169 | + os.close(0) |
| 170 | + os.close(1) |
| 171 | + os.close(2) |
168 | 172 | |
169 | 173 | os.setsid() |
170 | 174 | signal.signal(signal.SIGTERM, termHandler) |
Index: trunk/ganglia_metrics/MANIFEST.in |
— | — | @@ -1 +1,2 @@ |
2 | 2 | include init.d/gmetricd |
| 3 | +include *.py |