Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

boulder/cli/build: Setup a inhibitor lock during build #91

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- name: Install deps
run: |
sudo apt-get install git libcurl4-openssl-dev libgit2-dev liblmdb-dev libxxhash-dev libzstd-dev
sudo apt-get install git libcurl4-openssl-dev libgit2-dev liblmdb-dev libxxhash-dev libzstd-dev libdbus-1-dev

- name: Build & Test
run: |
Expand Down
3 changes: 3 additions & 0 deletions source/boulder/cli/build_command.d
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ public struct BuildControlCommand
return ExitStatus.Failure;
}

// Create a login1 inhibitor lock to prevent the system from going down during a build.
auto lock = inhibit("shutdown:sleep:idle", "boulder", "build in progress", "block");

/* When no recipes are specified, build stone.yml recipe in current directory if it exists */
if (argv == null && "stone.yml".exists)
{
Expand Down
Loading