diff options
author | Paul Barker <pbarker@konsulko.com> | 2021-08-19 12:46:44 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-23 08:30:55 +0100 |
commit | 295b75cf1cc17f9ab3990d9640a72af83a593a77 (patch) | |
tree | 326994f9e533bea5c008174aee38d6ed9fb2a5e9 /bitbake/bin | |
parent | fb3b05fe8da817967c9f90d4c4c0c1fee87c9f01 (diff) | |
download | poky-295b75cf1cc17f9ab3990d9640a72af83a593a77.tar.gz |
bitbake: prserv: Add read-only mode
[YOCTO #13659]
(Bitbake rev: 44287430b9804fcbf2440f85a2424792140e4dc9)
Signed-off-by: Paul Barker <pbarker@konsulko.com>
[updated for asyncrpc changes]
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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: |