[tahoe-lafs-trac-stream] [Tahoe-LAFS] #1546: pass arbitrary options to twistd through the "tahoe" command-line
Tahoe-LAFS
trac at tahoe-lafs.org
Thu Jan 16 20:14:58 UTC 2020
#1546: pass arbitrary options to twistd through the "tahoe" command-line
------------------------------+--------------------------------------------
Reporter: zooko | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: eventually
Component: code- | Version: 1.9.0a2
frontend-cli |
Resolution: | Keywords: cli twisted tahoe-start twistd
Launchpad Bug: |
------------------------------+--------------------------------------------
Comment (by exarkun):
This was implemented at some point.
{{{
$ tahoe run --help
Usage: tahoe [global-options] run [options] [NODEDIR [twistd-options]]
(use 'tahoe --help' to view global options)
Options:
-C, --basedir= Specify which Tahoe base directory should be used. This
has
the same effect as the global --node-directory option.
[default: '/home/exarkun/.tahoe']
--help Display this help and exit.
--version
twistd-options:
-b, --debug Run the application in the Python Debugger (implies
nodaemon), sending SIGUSR2 will drop into
debugger
--chroot= Chroot to a supplied directory before running
-d, --rundir= Change to a supplied directory before running
[default:
.]
-e, --encrypted The specified tap/aos file is encrypted.
--euid Set only effective user-id rather than real user-
id.
(This option has no effect unless the server is
running
as root, in which case it means not to shed all
privileges after binding ports, retaining the
option to
regain privileges in cases such as spawning
processes.
Use with caution.)
-f, --file= read the given .tap file [default: twistd.tap]
-g, --gid= The gid to run as. If not specified, the default
gid
associated with the specified --uid is used.
--help Display this help and exit.
--help-reactors Display a list of possibly available reactor names.
-l, --logfile= log to a specified file, - for stdout
--logger= A fully-qualified name to a log observer factory to
use
for the initial log observer. Takes precedence
over
--logfile and --syslog (when available).
-n, --nodaemon don't daemonize, don't use default umask of 0077
-o, --no_save do not save state on shutdown
--originalname Don't try to change the process name
-p, --profile= Run in profile mode, dumping results to specified
file.
--pidfile= Name of the pidfile [default: twistd.pid]
--prefix= use the given prefix when syslogging [default:
twisted]
--profiler= Name of the profiler to use (profile, cprofile).
[default: cprofile]
-r, --reactor= Which reactor to use (see --help-reactors for a
list of
possibilities)
-s, --source= Read an application from a .tas file (AOT format).
--savestats save the Stats object rather than the text output
of the
profiler.
--spew Print an insanely verbose log of everything that
happens.
Useful when debugging freezes or locks in complex
code.
--syslog Log to syslog, not to file
-u, --uid= The uid to run as.
--umask= The (octal) file creation mask to apply.
--version Print version information and exit.
-y, --python= read an application from within a Python file
(implies
-o)
Note that if any twistd-options are used, NODEDIR must be specified
explicitly
(not by default or using -C/--basedir or -d/--node-directory), and
followed by
the twistd-options.
}}}
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1546#comment:8>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list