summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorPaul Barker <pbarker@konsulko.com>2021-08-19 12:46:44 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-23 08:30:16 +0100
commit44287430b9804fcbf2440f85a2424792140e4dc9 (patch)
tree2c8ef8e3fe2e8be53d14116e06a7a4cc4381374e /bin
parent6a2b23e27bb61185b8afb382e20ce79f996d9183 (diff)
downloadbitbake-44287430b9804fcbf2440f85a2424792140e4dc9.tar.gz
prserv: Add read-only mode
[YOCTO #13659] 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 'bin')
-rwxr-xr-xbin/bitbake-prserv4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/bitbake-prserv b/bin/bitbake-prserv
index 1e9b6cbc1..bef5ef689 100755
--- a/bin/bitbake-prserv
+++ b/bin/bitbake-prserv
@@ -36,12 +36,14 @@ def main():
dest="host", type="string", default=PRHOST_DEFAULT)
parser.add_option("--port", help="port number(default: 8585)", action="store",
dest="port", type="int", default=PRPORT_DEFAULT)
+ parser.add_option("-r", "--read-only", help="open database in read-only mode",
+ action="store_true")
options, args = parser.parse_args(sys.argv)
prserv.init_logger(os.path.abspath(options.logfile),options.loglevel)
if options.start:
- ret=prserv.serv.start_daemon(options.dbfile, options.host, options.port,os.path.abspath(options.logfile))
+ ret=prserv.serv.start_daemon(options.dbfile, options.host, options.port,os.path.abspath(options.logfile), options.read_only)
elif options.stop:
ret=prserv.serv.stop_daemon(options.host, options.port)
else: