1TWISTD(1)                                                            TWISTD(1)
2
3
4

NAME

6       twistd - run Twisted applications (TACs, TAPs)
7

SYNOPSIS

9       twistd [options]
10

DESCRIPTION

12       Read  a  twisted.application.service.Application  out of a file and run
13       it.
14

OPTIONS

16       -n, --nodaemon Don't daemonize (stay in foreground).
17
18       -q, --quiet
19              No-op for backwards compatibility.
20
21       -p, --profile <profile output>
22              Run the application under the profiler, dumping results  to  the
23              specified file.
24
25       --profiler <profiler name>
26              Specify the profiler to use. Defaults to the 'hotshot' profiler.
27
28       --savestats
29              Save  the  Stats  object rather than the text output of the pro‐
30              filer.
31
32       -b, --debug
33              Run the application in the Python Debugger  (implies  --nodaemon
34              option).  Sending a SIGINT or SIGUSR2 signal to the process will
35              drop it into the debugger.
36
37       -e, --encrypted <file>
38              The specified tap/aos file is encrypted.
39
40       --euid Set only effective user-id rather than real user-id. This option
41              has  no  effect  unless  the server is running as root, in which
42              case it means not to shed all privileges  after  binding  ports,
43              retaining  the  option  to  regain  privileges  in cases such as
44              spawning processes. Use with caution.
45
46       -o, --no_save
47              Do not save shutdown state.
48
49       --originalname
50              Behave as though the specified Application has no  process  name
51              set,  and  run with the standard process name (the Python binary
52              in most cases).
53
54       -l, --logfile <logfile>
55              Log to a specified file, -  for  stdout  (default:  twistd.log).
56              The log file will be rotated on SIGUSR1.
57
58       --pidfile <pidfile>
59              Save pid in specified file (default: twistd.pid).
60
61       --chroot <directory>
62              Chroot  to  a  supplied directory before running (default: don't
63              chroot).  Chrooting is done before changing the  current  direc‐
64              tory.
65
66       -d, --rundir <directory>
67              Change to a supplied directory before running (default: .).
68
69       -u, --uid <uid>
70              The uid to run as (default: don't change).
71
72       -g, --gid <gid>
73              The gid to run as (default: don't change).
74
75       --umask <mask>
76              The (octal) file creation mask to apply. (default: 0077 for dae‐
77              mons, no change otherwise).
78
79       -r, --reactor <reactor>
80              Choose which reactor to use. See --help-reactors for a  list  of
81              possibilities.
82
83       --help-reactors
84              List the names of possibly available reactors.
85
86       --spew Write  an extremely verbose log of everything that happens. Use‐
87              ful for debugging freezes or locks in complex code.
88
89       -f, --file <tap file>
90              Read the given .tap file (default: twistd.tap).
91
92       -s, --source <tas file>
93              Load an Application from the  given  .tas  (AOT  Python  source)
94              file.
95
96       -y, --python <python file>
97              Use  the variable "application" from the given Python file. This
98              option overrides -f. This option implies --no_save.
99
100       -g, --plugin <plugin name>
101              Read config.tac from a plugin package, as with -y.
102
103       --syslog
104              Log to syslog instead of a file.
105
106       -u, --uid <uid>
107              The uid to run as.
108
109       -g, --gid <gid>
110              The gid to run as.
111
112       --version
113              Print version information and exit.
114
115       --prefix <prefix>
116              Use the specified prefix when logging  to  logfile.  Default  is
117              "twisted".
118
119       Note  that  if  twistd  is  run  as  root, the working directory is not
120       searched for Python modules.
121

SIGNALS

123       A running twistd accepts SIGINT for a clean  shutdown  and  SIGUSR1  to
124       rotate log files.
125

AUTHOR

127       Written by Moshe Zadka, based on twistd's help messages.
128

REPORTING BUGS

130       To report a bug, visit http://twistedmatrix.com/trac/wiki/TwistedDevel
131       opment#DevelopmentProcess
132
134       Copyright © 2001-2010 Twisted Matrix Laboratories.
135       This is free software; see the source for copying conditions. There  is
136       NO  warranty;  not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
137       PURPOSE.
138
139
140
141                                   Dec 2003                          TWISTD(1)
Impressum