1
.TH TWISTD "1" "Dec 2003" "" ""
3
twistd \- run Twisted applications (TACs, TAPs)
8
Read a twisted.application.service.Application out of a file and run it.
10
\fB\-n\fR, \fB\--nodaemon\fR
11
Don't daemonize (stay in foreground).
13
\fB\-q\fR, \fB\--quiet\fR
14
No-op for backwards compatibility.
16
\fB\-p\fR, \fB\--profile\fR \fI<profile output>\fR
17
Run the application under the profiler, dumping results to the specified file.
19
\fB\--profiler\fR \fI<profiler name>\fR
20
Specify the profiler to use. Defaults to the 'hotshot' profiler.
23
Save the Stats object rather than the text output of the profiler.
25
\fB\-b\fR, \fB\--debug\fR
26
Run the application in the Python Debugger (implies \fB\--nodaemon\fR option).
27
Sending a SIGINT or SIGUSR2 signal to the process will drop it into the
30
\fB\-e\fR, \fB\--encrypted\fR \fI<file>\fR
31
The specified tap/aos file is encrypted.
34
Set only effective user-id rather than real user-id. This option has no
35
effect unless the server is running as root, in which case it means not
36
to shed all privileges after binding ports, retaining the option to regain
37
privileges in cases such as spawning processes. Use with caution.
39
\fB\-o\fR, \fB\--no_save\fR
40
Do not save shutdown state.
43
Behave as though the specified Application has no process name set, and run
44
with the standard process name (the Python binary in most cases).
46
\fB\-l\fR, \fB\--logfile\fR \fI<logfile>\fR
47
Log to a specified file, - for stdout (default: twistd.log).
48
The log file will be rotated on SIGUSR1.
50
\fB\--pidfile\fR \fI<pidfile>\fR
51
Save pid in specified file (default: twistd.pid).
53
\fB\--chroot\fR \fI<directory>\fR
54
Chroot to a supplied directory before running (default: don't chroot).
55
Chrooting is done before changing the current directory.
57
\fB\-d\fR, \fB\--rundir\fR \fI<directory>\fR
58
Change to a supplied directory before running (default: .).
60
\fB\-u\fR, \fB\--uid\fR \fI<uid>\fR
61
The uid to run as (default: don't change).
63
\fB\-g\fR, \fB\--gid\fR \fI<gid>\fR
64
The gid to run as (default: don't change).
66
\fB--umask\fR \fI<mask>\fR
67
The (octal) file creation mask to apply. (default: 0077 for daemons, no
70
\fB\-r\fR, \fB\--reactor\fR \fI<reactor>\fR
71
Choose which reactor to use. See \fB\--help-reactors\fR for a list of
75
List the names of possibly available reactors.
78
Write an extremely verbose log of everything that happens. Useful for
79
debugging freezes or locks in complex code.
81
\fB\-f\fR, \fB\--file\fR \fI<tap file>\fR
82
Read the given .tap file (default: twistd.tap).
84
\fB\-s\fR, \fB\--source\fR \fI<tas file>\fR
85
Load an Application from the given .tas (AOT Python source) file.
87
\fB\-y\fR, \fB\--python\fR \fI<python file>\fR
88
Use the variable "application" from the given Python file. This option overrides
89
\fB\-f\fR. This option implies \fB\--no_save\fR.
91
\fB\-g\fR, \fB\--plugin\fR \fI<plugin name>\fR
92
Read config.tac from a plugin package, as with \fB\-y\fR.
95
Log to syslog instead of a file.
97
\fB\-u\fR, \fB\--uid\fR \fI<uid>\fR
100
\fB\-g\fR, \fB\--gid\fR \fI<gid>\fR
104
Print version information and exit.
106
\fB\--prefix\fR \fI<prefix>\fR
107
Use the specified prefix when logging to logfile. Default is "twisted".
109
Note that if \fBtwistd\fR is run as root, the working directory is \fInot\fR
110
searched for Python modules.
112
A running twistd accepts SIGINT for a clean shutdown and SIGUSR1 to rotate log
115
Written by Moshe Zadka, based on twistd's help messages.
117
To report a bug, visit
118
\fIhttp://twistedmatrix.com/trac/wiki/TwistedDevelopment#DevelopmentProcess\fR
120
Copyright \(co 2001-2010 Twisted Matrix Laboratories.
122
This is free software; see the source for copying conditions. There is NO
123
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.