|
17 | 17 |
|
18 | 18 | """Command-line script that runs a server over roundup.cgi.client. |
19 | 19 |
|
20 | | -$Id: roundup_server.py,v 1.46.2.3 2004-06-21 04:34:58 richard Exp $ |
| 20 | +$Id: roundup_server.py,v 1.46.2.4 2004-06-21 04:56:34 richard Exp $ |
21 | 21 | """ |
22 | 22 | __docformat__ = 'restructuredtext' |
23 | 23 |
|
@@ -343,37 +343,43 @@ def get_request(self): |
343 | 343 |
|
344 | 344 | def usage(message=''): |
345 | 345 | if RoundupService: |
346 | | - win = ''' -c: Windows Service options. If you want to run the server as a Windows |
347 | | - Service, you must configure the rest of the options by changing the |
348 | | - constants of this program. You will at least configure one tracker |
349 | | - in the TRACKER_HOMES variable. This option is mutually exclusive |
350 | | - from the rest. Typing "roundup-server -c help" shows Windows |
351 | | - Services specifics.''' |
| 346 | + os_part = \ |
| 347 | +""''' -c <Command> Windows Service options. |
| 348 | + If you want to run the server as a Windows Service, you must |
| 349 | + configure the rest of the options by changing the constants |
| 350 | + of this program. You will at least configure one tracker in |
| 351 | + the TRACKER_HOMES variable. This option is mutually exclusive |
| 352 | + from the rest. Typing "roundup-server -c help" shows Windows |
| 353 | + Services specifics.''' |
352 | 354 | else: |
353 | | - win = '' |
| 355 | + os_part = ''' -u <UID> runs the Roundup web server as this UID |
| 356 | + -g <GID> runs the Roundup web server as this GID |
| 357 | + -d <PIDfile> run the server in the background and write the server's PID |
| 358 | + to the file indicated by PIDfile. The -l option *must* be |
| 359 | + specified if -d is used.''' |
354 | 360 | port=PORT |
355 | | - print _('''%(message)s |
356 | | -Usage: |
357 | | -roundup-server [options] [name=tracker home]* |
358 | | -
|
359 | | -options: |
360 | | - -v: print version and exit |
361 | | - -n: sets the host name |
362 | | - -p: sets the port to listen on (default: %(port)s) |
363 | | - -u: sets the uid to this user after listening on the port |
364 | | - -g: sets the gid to this group after listening on the port |
365 | | - -l: sets a filename to log to (instead of stderr / stdout) |
366 | | - -d: run the server in the background and on UN*X write the server's PID |
367 | | - to the nominated file. The -l option *must* be specified if this |
368 | | - option is. |
369 | | - -N: log client machine names in access log instead of IP addresses (much |
370 | | - slower) |
371 | | -%(win)s |
372 | | -
|
373 | | -name=tracker home: |
374 | | - Sets the tracker home(s) to use. The name is how the tracker is |
375 | | - identified in the URL (it's the first part of the URL path). The |
376 | | - tracker home is the directory that was identified when you did |
| 361 | + if message: |
| 362 | + message += '\n' |
| 363 | + print _('''%(message)sUsage: roundup-server [options] [name=tracker home]* |
| 364 | +
|
| 365 | +Options: |
| 366 | + -v prints the Roundup version number and exits |
| 367 | + -n <name> sets the host name of the Roundup web server instance |
| 368 | + -p <port> sets the port to listen on (default: %(port)s) |
| 369 | + -l <fname> log to the file indicated by fname instead of stderr/stdout |
| 370 | + -N log client machine names instead of IP addresses (much slower) |
| 371 | +%(os_part)s |
| 372 | +
|
| 373 | +Examples: |
| 374 | + roundup-server support=/var/spool/roundup-trackers/support |
| 375 | +
|
| 376 | + roundup-server -d /var/run/roundup.pid -l /var/log/roundup.log \\ |
| 377 | + support=/var/spool/roundup-trackers/support |
| 378 | +
|
| 379 | +How to use "name=tracker home": |
| 380 | + These arguments set the tracker home(s) to use. The name is how the |
| 381 | + tracker is identified in the URL (it's the first part of the URL path). |
| 382 | + The tracker home is the directory that was identified when you did |
377 | 383 | "roundup-admin init". You may specify any number of these name=home |
378 | 384 | pairs on the command-line. For convenience, you may edit the |
379 | 385 | TRACKER_HOMES variable in the roundup-server file instead. |
|
0 commit comments