diff options
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake-prserv | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-prserv b/bitbake/bin/bitbake-prserv index 1e9b6cbc1b..bef5ef6897 100755 --- a/bitbake/bin/bitbake-prserv +++ b/bitbake/bin/bitbake-prserv | |||
@@ -36,12 +36,14 @@ def main(): | |||
36 | dest="host", type="string", default=PRHOST_DEFAULT) | 36 | dest="host", type="string", default=PRHOST_DEFAULT) |
37 | parser.add_option("--port", help="port number(default: 8585)", action="store", | 37 | parser.add_option("--port", help="port number(default: 8585)", action="store", |
38 | dest="port", type="int", default=PRPORT_DEFAULT) | 38 | dest="port", type="int", default=PRPORT_DEFAULT) |
39 | parser.add_option("-r", "--read-only", help="open database in read-only mode", | ||
40 | action="store_true") | ||
39 | 41 | ||
40 | options, args = parser.parse_args(sys.argv) | 42 | options, args = parser.parse_args(sys.argv) |
41 | prserv.init_logger(os.path.abspath(options.logfile),options.loglevel) | 43 | prserv.init_logger(os.path.abspath(options.logfile),options.loglevel) |
42 | 44 | ||
43 | if options.start: | 45 | if options.start: |
44 | ret=prserv.serv.start_daemon(options.dbfile, options.host, options.port,os.path.abspath(options.logfile)) | 46 | ret=prserv.serv.start_daemon(options.dbfile, options.host, options.port,os.path.abspath(options.logfile), options.read_only) |
45 | elif options.stop: | 47 | elif options.stop: |
46 | ret=prserv.serv.stop_daemon(options.host, options.port) | 48 | ret=prserv.serv.stop_daemon(options.host, options.port) |
47 | else: | 49 | else: |