aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xservice.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/service.py b/service.py
index 7a36235..339008e 100755
--- a/service.py
+++ b/service.py
@@ -233,7 +233,9 @@ def str2bool(v: Union[str, bool, int]) -> bool:
if __name__ == "__main__":
- lock_file_path = os.path.join(tempfile.gettempdir(), "rwa-session-service.lock")
+ lock_dir_path = os.path.join(tempfile.gettempdir(), "rwa-session-service")
+ os.makedirs(lock_dir_path, exist_ok=True)
+ lock_file_path = os.path.join(lock_dir_path, "rwa-session-service.lock")
# Check for lock file
if os.path.exists(lock_file_path):