Mailing List Archive

[bricoleurs/bricolage] af651d: Switch to Bricolage user after writing PID file.
Branch: refs/heads/master
Home: http://github.com/bricoleurs/bricolage

Commit: af651d606e2d369aaf7816713294a25f56cbef44
http://github.com/bricoleurs/bricolage/commit/af651d606e2d369aaf7816713294a25f56cbef44
Author: David E. Wheeler <david@justatheory.com>
Date: 2010-03-09 (Tue, 09 Mar 2010)

Changed paths:
M bin/bric_ftpd
M bin/bric_queued
M lib/Bric/Admin.pod
M lib/Bric/Changes.pod
M lib/Bric/Config.pm
M lib/Bric/Util/FTP/Server.pm

Log Message:
-----------
Switch to Bricolage user after writing PID file.

Found that when Bricolage was configured to write the `bric_queued` and
`bric_ftpd` PID files to standard system locations that it would get
permission errors because, even though they were started by root, they were
becoming the Bricolage user before doing much else. This commit makes it so
that they become the Bricolage system user only after writing out the PID
file.

While at it, I changed the default location of the FTP server PID and log
files to the `log` subdirectory, rather than the bricolage root itself. The
log directory is clearly the better location, and has no permissions issues.
It's also what was always suggested by the comments in `bricolage.conf`,
though not in Bric::Admin or the code.