From 5064e5c9a705365524321e01686e73ac1bdf28a0 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 10 Jan 2017 11:23:50 +0100 Subject: Make sure the path is existing, otherwise the lockfile will not be created. --- synchronizer/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/synchronizer/main.cpp b/synchronizer/main.cpp index afc3c26..7b9165e 100644 --- a/synchronizer/main.cpp +++ b/synchronizer/main.cpp @@ -19,6 +19,7 @@ #include #include +#include #include #include @@ -164,6 +165,7 @@ int main(int argc, char *argv[]) Sink::Log::setPrimaryComponent(instanceIdentifier); SinkLog() << "Starting: " << instanceIdentifier << resourceType; + QDir{}.mkpath(Sink::resourceStorageLocation(instanceIdentifier)); QLockFile lockfile(Sink::resourceStorageLocation(instanceIdentifier) + "/resource.lock"); lockfile.setStaleLockTime(500); if (!lockfile.tryLock(0)) { -- cgit v1.2.3