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