diff options
Diffstat (limited to 'bitbake/bin')
-rw-r--r-- | bitbake/bin/bitbake-prserv | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bitbake/bin/bitbake-prserv b/bitbake/bin/bitbake-prserv index a7ab55f736..a8d7acb4c2 100644 --- a/bitbake/bin/bitbake-prserv +++ b/bitbake/bin/bitbake-prserv | |||
@@ -10,7 +10,7 @@ import prserv.serv | |||
10 | 10 | ||
11 | __version__="1.0.0" | 11 | __version__="1.0.0" |
12 | 12 | ||
13 | PRHOST_DEFAULT='' | 13 | PRHOST_DEFAULT='0.0.0.0' |
14 | PRPORT_DEFAULT=8585 | 14 | PRPORT_DEFAULT=8585 |
15 | 15 | ||
16 | def main(): | 16 | def main(): |
@@ -18,8 +18,8 @@ def main(): | |||
18 | version="Bitbake PR Service Core version %s, %%prog version %s" % (prserv.__version__, __version__), | 18 | version="Bitbake PR Service Core version %s, %%prog version %s" % (prserv.__version__, __version__), |
19 | usage = "%prog < --start | --stop > [options]") | 19 | usage = "%prog < --start | --stop > [options]") |
20 | 20 | ||
21 | parser.add_option("-f", "--file", help="database filename(default: prserv.db)", action="store", | 21 | parser.add_option("-f", "--file", help="database filename(default: prserv.sqlite3)", action="store", |
22 | dest="dbfile", type="string", default="prserv.db") | 22 | dest="dbfile", type="string", default="prserv.sqlite3") |
23 | parser.add_option("-l", "--log", help="log filename(default: prserv.log)", action="store", | 23 | parser.add_option("-l", "--log", help="log filename(default: prserv.log)", action="store", |
24 | dest="logfile", type="string", default="prserv.log") | 24 | dest="logfile", type="string", default="prserv.log") |
25 | parser.add_option("--loglevel", help="logging level, i.e. CRITICAL, ERROR, WARNING, INFO, DEBUG", | 25 | parser.add_option("--loglevel", help="logging level, i.e. CRITICAL, ERROR, WARNING, INFO, DEBUG", |
@@ -37,8 +37,7 @@ def main(): | |||
37 | prserv.init_logger(os.path.abspath(options.logfile),options.loglevel) | 37 | prserv.init_logger(os.path.abspath(options.logfile),options.loglevel) |
38 | 38 | ||
39 | if options.start: | 39 | if options.start: |
40 | ret=prserv.serv.start_daemon(dbfile=options.dbfile, interface=(options.host, options.port), | 40 | ret=prserv.serv.start_daemon(options.dbfile, options.host, options.port,os.path.abspath(options.logfile)) |
41 | logfile=os.path.abspath(options.logfile)) | ||
42 | elif options.stop: | 41 | elif options.stop: |
43 | ret=prserv.serv.stop_daemon(options.host, options.port) | 42 | ret=prserv.serv.stop_daemon(options.host, options.port) |
44 | else: | 43 | else: |