Index: trunk/backup/WikiDump.py |
— | — | @@ -3,6 +3,7 @@ |
4 | 4 | import os |
5 | 5 | import re |
6 | 6 | import smtplib |
| 7 | +import socket |
7 | 8 | import sys |
8 | 9 | import threading |
9 | 10 | import time |
— | — | @@ -256,7 +257,7 @@ |
257 | 258 | if not os.path.isdir(self.privateDir()): |
258 | 259 | raise |
259 | 260 | f = atomicCreate(self.lockFile(), "w") |
260 | | - f.write("%s.%d" % (os.getenv("HOSTNAME"), os.getpid())) |
| 261 | + f.write("%s %d\n" % (socket.getfqdn(), os.getpid())) |
261 | 262 | f.close() |
262 | 263 | |
263 | 264 | self.watchdog = LockWatchdog(self.lockFile()) |