Tuesday, November 28, 2023

[fix] devel/py-buildbot/www startup

--- buildbot/scripts/logwatcher.py.orig Tue Nov 28 10:31:51 2023
+++ buildbot/scripts/logwatcher.py Tue Nov 28 10:32:01 2023
@@ -113,7 +113,7 @@ class LogWatcher(LineOnlyLongLineReceiver):
else:
tailBin = "/usr/bin/tail"

- args = ("tail", "-F", "-n", "0", self.logfile)
+ args = ("tail", "-f", "-n", "0", self.logfile)
self.p = self._reactor.spawnProcess(self.pp, tailBin, args,
env=os.environ)
self.running = True
Hi!

During setup of a new buildbot master under OpenBSD 7.4 I noticed that
'rcctl start buildbot' always fails but buildbot is running afterwards.

Debugging showed that buildbot is calling 'tail -F' to watch the
twistd.log for recognizing a successfull startup.

The attached diff fixes this call to tail by replacing '-F' with '-f'.
Now buildbot startes as expected and rcctl is happy too.

-- Matthias

No comments:

Post a Comment