chiark / gitweb /
svc/connect.in: Export the admin-socket name to inferior processes.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 1 Oct 2017 11:48:36 +0000 (12:48 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 14 Jun 2018 09:34:25 +0000 (10:34 +0100)
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.

svc/connect.in

index dea2f905262d1b5441c2a71e0a1a3930f8faf1bf..85217ccb583622203230192089e802b1278eb627 100644 (file)
@@ -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)