Part of aculab View Source
| Function | daemonize | This forks the current process into a daemon. |
| Function | defaultLogging | Establish default logging as used by the example scripts. |
| Function | set_TiNGtrace | Helper function for the option parser: set TiNGtrace. |
| Function | defaultOptions | A default option parser. |
This forks the current process into a daemon.
The stdin, stdout, and stderr
arguments are file names that will be opened and used to replace the
standard file descriptors in sys.stdin,
sys.stdout, and sys.stderr.
/dev/null. Note
that stderr is opened unbuffered, so if it shares a file with stdout then
interleaved output may not appear in the order that you expect.
Establish default logging as used by the example scripts.
If logfile is None (the default), log to stdout. Read the source for details.A default option parser.
Related Python documentation: optparse
Passes all extra args/kwargs on to the OptionParser constructor.
The returned option parser understands the following arguments:| Parameters | repeat | Include -r or --repeat in the option list. Off by default. |
| Returns | an option parser with the default options listed above. | |