0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

livebook: fix service not starting when LIVEBOOK_COOKIE was not set

This commit is contained in:
Alexandru Scvortov 2024-07-25 14:28:25 +01:00
parent f147a306d5
commit 742ee97845
2 changed files with 8 additions and 4 deletions

View file

@ -89,6 +89,13 @@ in
EnvironmentFile = cfg.environmentFile;
ExecStart = "${cfg.package}/bin/livebook start";
KillMode = "mixed";
# Fix for the issue described here:
# https://github.com/livebook-dev/livebook/issues/2691
#
# Without this, the livebook service fails to start and gets
# stuck running a `cat /dev/urandom | tr | fold` pipeline.
IgnoreSIGPIPE = false;
};
environment = mapAttrs (name: value:
if isBool value then boolToString value else toString value)