From: asteroide Date: Thu, 29 Jun 2017 12:53:58 +0000 (+0200) Subject: Add a log when the PID file cannot be written in /var/run X-Git-Tag: opnfv-5.1.RC1~56 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F19%2F36919%2F1;p=moon.git Add a log when the PID file cannot be written in /var/run Change-Id: Ibcecd6a631c5ee0bd7e9012ba15f6efcb4f61373 --- diff --git a/moonv4/moon_orchestrator/moon_orchestrator/server.py b/moonv4/moon_orchestrator/moon_orchestrator/server.py index 85d7d3f4..a4e50f1a 100644 --- a/moonv4/moon_orchestrator/moon_orchestrator/server.py +++ b/moonv4/moon_orchestrator/moon_orchestrator/server.py @@ -108,6 +108,7 @@ def __save_pid(): open("/var/run/moon_orchestrator.pid", "w").write(str(os.getpid())) except PermissionError: LOG.warning("You don't have the right to write PID file in /var/run... Continuing anyway.") + LOG.warning("Writing PID file in {}".format(os.getcwd())) open("./moon_orchestrator.pid", "w").write(str(os.getpid()))