From 901a4bb572551a03da79017306bf41fd3848b6d2 Mon Sep 17 00:00:00 2001 From: asteroide Date: Thu, 29 Jun 2017 14:53:58 +0200 Subject: Add a log when the PID file cannot be written in /var/run Change-Id: Ibcecd6a631c5ee0bd7e9012ba15f6efcb4f61373 --- moonv4/moon_orchestrator/moon_orchestrator/server.py | 1 + 1 file changed, 1 insertion(+) (limited to 'moonv4/moon_orchestrator') 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())) -- cgit 1.2.3-korg