Mercurial > sat_docs
diff docker/sat_pubsub/Dockerfile @ 83:8dd32aa49614
docker: pid files are put in /tmp to avoid conflict when restarting a container
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 18 Feb 2016 17:19:50 +0100 |
parents | 686a8c982c3f |
children | b69056368901 |
line wrap: on
line diff
--- a/docker/sat_pubsub/Dockerfile Thu Feb 18 14:43:33 2016 +0100 +++ b/docker/sat_pubsub/Dockerfile Thu Feb 18 17:19:50 2016 +0100 @@ -26,7 +26,7 @@ proxy = xmlrpclib.ServerProxy("http://prosody:9999/")\n\ domain = proxy.getenv("DOMAIN")\n\ secret = proxy.getenv("SAT_PUBSUB_SECRET")\n\ -os.execlp("twistd", "twistd", "-n", "sat_pubsub", "--rhost", "prosody",\ +os.execlp("twistd", "twistd", "-n", "--pidfile", "/tmp/sat_pubsub.pid", "sat_pubsub", "--rhost", "prosody",\ "--jid", "pubsub.%s" % domain, "--secret", secret)\n\ ' > /usr/local/bin/sat_pubsub && chmod 0555 /usr/local/bin/sat_pubsub