From 20402728798aa36f1bbcd0faf8060cd6268d3944 Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Wed, 12 Apr 2023 13:20:41 +0000 Subject: [PATCH] fix(redis): Do not shut down redis on ctrl c see https://github.com/NixOS/nix/issues/2141 --- shell.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index d7f08b4..b94b71d 100644 --- a/shell.nix +++ b/shell.nix @@ -35,7 +35,8 @@ pkgs.mkShell { # for example. printenv will not fetch the value of an attribute. export USE_REDIS_PORT=6379 pkill redis-server - redis-server --bind 127.0.0.1 --port $USE_REDIS_PORT >/dev/null & + sleep 2 + setsid redis-server --bind 127.0.0.1 --port $USE_REDIS_PORT >/dev/null 2>/dev/null & # maybe set more env-vars ''; }