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:
parent
f147a306d5
commit
742ee97845
2 changed files with 8 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue