summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-05-10 19:42:59 +0200
committerpks <pks@pks.rocks>2021-05-10 19:42:59 +0200
commitaf7f6c9367ab7e05d3d47a907fa81265a4418375 (patch)
treef600070cacced1a10d129d2ff6b20afd98df8e6b
parentd48f7cb6557b8c80b0b920284ef709da3a56646e (diff)
fix
-rwxr-xr-xweather-logger-receiver2
1 files changed, 1 insertions, 1 deletions
diff --git a/weather-logger-receiver b/weather-logger-receiver
index fd0c8e4..209c961 100755
--- a/weather-logger-receiver
+++ b/weather-logger-receiver
@@ -78,7 +78,7 @@ def write_pid_file(pid_file_path, logger):
pid = pid_file.read()
logger.error(f"Possibly already running with PID {pid}, exiting")
sys.exit(1)
- with open(path, "w") as pid_file:
+ with open(pid_file_path, "w") as pid_file:
pid_file.write(str(os.getpid()))