livebook: Set KillMode=mixed
This will gracefully shut down the service instead of resulting in errors like this: ``` Jan 24 10:11:11 foo livebook[981676]: 10:11:11.922 [error] GenServer :disksup terminating Jan 24 10:11:11 foo livebook[981676]: ** (stop) {:port_died, :normal} Jan 24 10:11:11 foo livebook[981676]: Last message: {:EXIT, #Port<0.8>, :normal} Jan 24 10:11:11 foo livebook[981676]: 10:11:11.922 [error] GenServer :memsup terminating Jan 24 10:11:11 foo livebook[981676]: ** (stop) {:port_died, :normal} ```
This commit is contained in:
parent
897d5670a3
commit
1ee8e72834
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ in
|
|||
Restart = "always";
|
||||
EnvironmentFile = cfg.environmentFile;
|
||||
ExecStart = "${cfg.package}/bin/livebook start";
|
||||
KillMode = "mixed";
|
||||
};
|
||||
environment = mapAttrs (name: value:
|
||||
if isBool value then boolToString value else toString value)
|
||||
|
|
Loading…
Reference in a new issue