comparison roundup/scripts/roundup_server.py @ 2483:55b496fb7b5b

better roundup-server usage string [SF#973352]
author Richard Jones <richard@users.sourceforge.net>
date Mon, 21 Jun 2004 04:42:11 +0000
parents 8f2d1aabd940
children 8822780fa519
comparison
equal deleted inserted replaced
2481:8f2d1aabd940 2483:55b496fb7b5b
15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
16 # 16 #
17 17
18 """Command-line script that runs a server over roundup.cgi.client. 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 __docformat__ = 'restructuredtext' 22 __docformat__ = 'restructuredtext'
23 23
24 # python version check 24 # python version check
25 from roundup import version_check 25 from roundup import version_check
341 break 341 break
342 return rv 342 return rv
343 343
344 def usage(message=''): 344 def usage(message=''):
345 if RoundupService: 345 if RoundupService:
346 win = \ 346 os_part = \
347 ""''' -c: Windows Service options. If you want to run the server as a Windows 347 ""''' -c <Command> Windows Service options.
348 Service, you must configure the rest of the options by changing the 348 If you want to run the server as a Windows Service, you must
349 constants of this program. You will at least configure one tracker 349 configure the rest of the options by changing the constants
350 in the TRACKER_HOMES variable. This option is mutually exclusive 350 of this program. You will at least configure one tracker in
351 from the rest. Typing "roundup-server -c help" shows Windows 351 the TRACKER_HOMES variable. This option is mutually exclusive
352 Services specifics.''' 352 from the rest. Typing "roundup-server -c help" shows Windows
353 Services specifics.'''
353 else: 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 port=PORT 360 port=PORT
356 print _('''%(message)s 361 if message:
357 Usage: 362 message += '\n'
358 roundup-server [options] [name=tracker home]* 363 print _('''%(message)sUsage: roundup-server [options] [name=tracker home]*
359 364
360 options: 365 Options:
361 -v: print version and exit 366 -v prints the Roundup version number and exits
362 -n: sets the host name 367 -n <name> sets the host name of the Roundup web server instance
363 -p: sets the port to listen on (default: %(port)s) 368 -p <port> sets the port to listen on (default: %(port)s)
364 -u: sets the uid to this user after listening on the port 369 -l <fname> log to the file indicated by fname instead of stderr/stdout
365 -g: sets the gid to this group after listening on the port 370 -N log client machine names instead of IP addresses (much slower)
366 -l: sets a filename to log to (instead of stderr / stdout) 371 %(os_part)s
367 -d: run the server in the background and on UN*X write the server's PID 372
368 to the nominated file. The -l option *must* be specified if this 373 Examples:
369 option is. 374 roundup-server support=/var/spool/roundup-trackers/support
370 -N: log client machine names in access log instead of IP addresses (much 375
371 slower) 376 roundup-server -d /var/run/roundup.pid -l /var/log/roundup.log \\
372 %(win)s 377 support=/var/spool/roundup-trackers/support
373 378
374 name=tracker home: 379 How to use "name=tracker home":
375 Sets the tracker home(s) to use. The name is how the tracker is 380 These arguments set the tracker home(s) to use. The name is how the
376 identified in the URL (it's the first part of the URL path). The 381 tracker is identified in the URL (it's the first part of the URL path).
377 tracker home is the directory that was identified when you did 382 The tracker home is the directory that was identified when you did
378 "roundup-admin init". You may specify any number of these name=home 383 "roundup-admin init". You may specify any number of these name=home
379 pairs on the command-line. For convenience, you may edit the 384 pairs on the command-line. For convenience, you may edit the
380 TRACKER_HOMES variable in the roundup-server file instead. 385 TRACKER_HOMES variable in the roundup-server file instead.
381 Make sure the name part doesn't include any url-unsafe characters like 386 Make sure the name part doesn't include any url-unsafe characters like
382 spaces, as these confuse the cookie handling in browsers like IE. 387 spaces, as these confuse the cookie handling in browsers like IE.

Roundup Issue Tracker: http://roundup-tracker.org/