Mercurial > sat_docs
view docker_legacy/salut/scripts/salut @ 169:31a09c59a7bf
association: ajout du compte rendu de l'AG extraordinaire du 27 janvier 2021
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 28 Jan 2021 16:41:43 +0100 |
parents | 29873a41aae1 |
children |
line wrap: on
line source
#!/usr/bin/env python2 # This script launch Salut with domain and secret gotten from prosody container # it make the configuration more easy import os, xmlrpclib SALUT_PATH="/usr/share/sat_salut/" os.chdir("/home/sat") proxy = xmlrpclib.ServerProxy("http://prosody:9999/") for var in ("DOMAIN", "SAT_SALUT_SECRET"): os.environ[var] = proxy.getenv(var) os.environ["PYTHONPATH"] = SALUT_PATH os.execlp("twistd", "twistd", "-ny", SALUT_PATH+"salut.tac", "--pidfile", "/tmp/salut.pid")