Mostly utility functions Lamson uses internally that don't really
belong anywhere else in the modules. This module is kind of a dumping
ground, so if you find something that can be improved feel free to work
up a patch.
|
|
|
|
|
daemonize(pid,
chdir,
chroot,
umask,
files_preserve=None,
do_open=True)
Uses python-daemonize to do all the junk needed to make a server a
server. |
source code
|
|
|
|
drop_priv(uid,
gid)
Changes the uid/gid to the two given, you should give utils.daemonize
0,0 for the uid,gid so that it becomes root, which will allow you to
then do this. |
source code
|
|
|
|
make_fake_settings(host,
port)
When running as a logging server we need a fake settings module to
work with since the logging server can be run in any directory, so
there may not be a config/settings.py file to import. |
source code
|
|
|
|
|
|
|
start_server(pid,
force,
chroot,
chdir,
uid,
gid,
umask,
settings_loader)
Starts the server by doing a daemonize and then dropping priv
accordingly. |
source code
|
|