Skip to content

Commit ed7ae90

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 98bebdf commit ed7ae90

File tree

2 files changed

+37
-30
lines changed

2 files changed

+37
-30
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Fixed:
1010
- fixed some more mysql 0.6->0.7 upgrade bugs (sf bug 950410)
1111
- fixed Boolean values in postgresql (sf bugs 972546 and 972600)
1212
- fixed -g arg to roundup-server (sf bug 973946)
13+
- better roundup-server usage string (sf bug 973352)
1314

1415

1516
2004-06-10 0.7.4

roundup/scripts/roundup_server.py

Lines changed: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
"""Command-line script that runs a server over roundup.cgi.client.
1919
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 $
2121
"""
2222
__docformat__ = 'restructuredtext'
2323

@@ -343,37 +343,43 @@ def get_request(self):
343343

344344
def usage(message=''):
345345
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.'''
352354
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.'''
354360
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
377383
"roundup-admin init". You may specify any number of these name=home
378384
pairs on the command-line. For convenience, you may edit the
379385
TRACKER_HOMES variable in the roundup-server file instead.

0 commit comments

Comments
 (0)