From 4c6518a513f6f1e17c8e301314e38c5a14a63fa8 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 668da69..5f19502 100644 --- a/shell.nix +++ b/shell.nix @@ -72,7 +72,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 ''; }