Ticket #1017 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 years ago

add a twistd.hostname on startup

Reported by: dustin Owned by: dustin
Priority: major Milestone: 0.8.2
Version: 0.8.1 Keywords:
Cc:

Description

For buildslave roots that are on an NFS or otherwise shared filesystem, it can be difficult to tell which node is running the slave represented by twistd.pid.

For cases like this, a simple write to a twistd.hostname file at startup would probably make things easier. Since the file would not grow unboundedly, I don't think this would cause problems for other users.

Change History

comment:1 Changed 3 years ago by Dustin J. Mitchell

  • Status changed from new to closed
  • Resolution set to fixed

output the slave hostname to twistd.hostname, for easier management

Fixes #1017

Changeset: f69d4bc5db511ca2972f99d451ab51a913c391dc

comment:2 Changed 2 years ago by Dustin J. Mitchell

Delay writing twistd.hostname and logging until after fork

This fixes a fork-thread interaction on Mac OS X (Fixes #1909).

Refs #1017.

Changeset: 34ee24847655d1ff30a2ab496a61a5cd8eb7073b

Note: See TracTickets for help on using tickets.