Skip to content

Commit

Permalink
Initialize Configuration::InitRunDir for Windows and writing the PID …
Browse files Browse the repository at this point in the history
…file

Even if this some Unix specific stuff, we rely on writing this file
in our generic application code. Therefore its path needs to be specified.

This got broken with 9fbc406 which renamed RunDir to InitRunDir, but
didn't re-add it to the Windows #ifdefs.
  • Loading branch information
Michael Friedrich committed Oct 12, 2018
1 parent 71a8f35 commit c7ec99e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions icinga-app/icinga.cpp
Expand Up @@ -213,6 +213,8 @@ static int Main()
/* Internal constants. */
Configuration::PkgDataDir = binaryPrefix + "\\share\\icinga2";
Configuration::IncludeConfDir = binaryPrefix + "\\share\\icinga2\\include";

Configuration::InitRunDir = dataPrefix + "\\var\\run";
} else {
Log(LogWarning, "icinga-app", "Registry key could not be read. Falling back to built-in paths.");

Expand Down

0 comments on commit c7ec99e

Please sign in to comment.