diff options
Diffstat (limited to 'bitbake/bin/bitbake-hashserv')
-rwxr-xr-x | bitbake/bin/bitbake-hashserv | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-hashserv b/bitbake/bin/bitbake-hashserv index 1bc1f91f38..2669bbd130 100755 --- a/bitbake/bin/bitbake-hashserv +++ b/bitbake/bin/bitbake-hashserv | |||
@@ -33,6 +33,7 @@ def main(): | |||
33 | parser.add_argument('--bind', default=DEFAULT_BIND, help='Bind address (default "%(default)s")') | 33 | parser.add_argument('--bind', default=DEFAULT_BIND, help='Bind address (default "%(default)s")') |
34 | parser.add_argument('--database', default='./hashserv.db', help='Database file (default "%(default)s")') | 34 | parser.add_argument('--database', default='./hashserv.db', help='Database file (default "%(default)s")') |
35 | parser.add_argument('--log', default='WARNING', help='Set logging level') | 35 | parser.add_argument('--log', default='WARNING', help='Set logging level') |
36 | parser.add_argument('-r', '--read-only', action='store_true', help='Disallow write operations from clients') | ||
36 | 37 | ||
37 | args = parser.parse_args() | 38 | args = parser.parse_args() |
38 | 39 | ||
@@ -47,7 +48,7 @@ def main(): | |||
47 | console.setLevel(level) | 48 | console.setLevel(level) |
48 | logger.addHandler(console) | 49 | logger.addHandler(console) |
49 | 50 | ||
50 | server = hashserv.create_server(args.bind, args.database) | 51 | server = hashserv.create_server(args.bind, args.database, read_only=args.read_only) |
51 | server.serve_forever() | 52 | server.serve_forever() |
52 | return 0 | 53 | return 0 |
53 | 54 | ||