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       -l, --logger <fully qualified python name>
59              A  fully-qualified name to a log observer factory to use for the
60              initial log observer. Takes precedence over --logfile and --sys‐
61              log.
62
63       --pidfile <pidfile>
64              Save pid in specified file (default: twistd.pid).
65
66       --chroot <directory>
67              Chroot  to  a  supplied directory before running (default: don't
68              chroot).  Chrooting is done before changing the  current  direc‐
69              tory.
70
71       -d, --rundir <directory>
72              Change to a supplied directory before running (default: .).
73
74       -u, --uid <uid>
75              The uid to run as (default: don't change).
76
77       -g, --gid <gid>
78              The gid to run as (default: don't change).
79
80       --umask <mask>
81              The (octal) file creation mask to apply. (default: 0077 for dae‐
82              mons, no change otherwise).
83
84       -r, --reactor <reactor>
85              Choose which reactor to use. See --help-reactors for a  list  of
86              possibilities.
87
88       --help-reactors
89              List the names of possibly available reactors.
90
91       --spew Write  an extremely verbose log of everything that happens. Use‐
92              ful for debugging freezes or locks in complex code.
93
94       -f, --file <tap file>
95              Read the given .tap file (default: twistd.tap).
96
97       -s, --source <tas file>
98              Load an Application from the  given  .tas  (AOT  Python  source)
99              file.
100
101       -y, --python <python file>
102              Use  the variable "application" from the given Python file. This
103              option overrides -f. This option implies --no_save.
104
105       --syslog
106              Log to syslog instead of a file.
107
108       --version
109              Print version information and exit.
110
111       --prefix <prefix>
112              Use the specified prefix when logging  to  logfile.  Default  is
113              "twisted".
114
115       Note  that  if  twistd  is  run  as  root, the working directory is not
116       searched for Python modules.
117

SIGNALS

119       A running twistd accepts SIGINT for a clean  shutdown  and  SIGUSR1  to
120       rotate log files.
121

AUTHOR

123       Written by Moshe Zadka, based on twistd's help messages.
124

REPORTING BUGS

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