]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
node.py: make twistd.pid world-readable, so stats-gathering tools (specifically memor...
authorBrian Warner <warner@allmydata.com>
Thu, 27 Mar 2008 01:37:54 +0000 (18:37 -0700)
committerBrian Warner <warner@allmydata.com>
Thu, 27 Mar 2008 01:37:54 +0000 (18:37 -0700)
src/allmydata/node.py

index 1bb9d708353c5f17eb7ced8a444b1ae115ded7fd..e9481b84cd8fe47cc0deb2a492918e6ca8efd3fb 100644 (file)
@@ -150,6 +150,10 @@ class Node(service.MultiService):
     def startService(self):
         # Note: this class can be started and stopped at most once.
         self.log("Node.startService")
+        try:
+            os.chmod("twistd.pid", 0644)
+        except EnvironmentError:
+            pass
         # Delay until the reactor is running.
         eventual.eventually(self._startService)