Unify Hydra's NixOS module with the one used for hydra.nixos.org
In particular, the queue runner and web server now run under different UIDs.
This commit is contained in:
@ -1568,7 +1568,9 @@ void State::notificationSender()
|
||||
|
||||
std::shared_ptr<PathLocks> State::acquireGlobalLock()
|
||||
{
|
||||
Path lockPath = hydraData + "/queue-runner";
|
||||
Path lockPath = hydraData + "/queue-runner/lock";
|
||||
|
||||
createDirs(dirOf(lockPath));
|
||||
|
||||
auto lock = std::make_shared<PathLocks>();
|
||||
if (!lock->lockPaths(PathSet({lockPath}), "", false)) return 0;
|
||||
|
Reference in New Issue
Block a user