From: Mark Wooding Date: Sun, 1 Oct 2017 11:48:36 +0000 (+0100) Subject: svc/connect.in: Export the admin-socket name to inferior processes. X-Git-Tag: 1.5.0~89 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/tripe/commitdiff_plain/04b3c57c284153da62e4935e0fdc07c1753fe7f4 svc/connect.in: Export the admin-socket name to inferior processes. This way, if `connect' is run with a nonstandard `-a' option, it will pass that along to `tripe-ifup' or whatever, so that, when it in turn runs `tripectl', it'll be able to talk to the correct server. --- diff --git a/svc/connect.in b/svc/connect.in index dea2f905..85217ccb 100644 --- a/svc/connect.in +++ b/svc/connect.in @@ -953,6 +953,7 @@ service_info = [('connect', T.VERSION, { if __name__ == '__main__': opts = parse_options() + OS.environ['TRIPESOCK'] = opts.tripesock T.runservices(opts.tripesock, service_info, init = init, setup = setup, daemon = opts.daemon)