diff --git a/nix/mariadb-up-mac.nix b/nix/mariadb-up-mac.nix --- a/nix/mariadb-up-mac.nix +++ b/nix/mariadb-up-mac.nix @@ -17,6 +17,7 @@ echo "View MariaDB logs: tail -f $MARIADB_DIR/logs" >&2 echo "Kill MariaDB server: pkill mariadbd" >&2 + exec 3>&- exec "${mariadb}/bin/mariadbd" \ --socket "$MARIADB_DIR"/mysql.sock \ --datadir "$MARIADB_DIR" \ diff --git a/nix/redis-up-mac.nix b/nix/redis-up-mac.nix --- a/nix/redis-up-mac.nix +++ b/nix/redis-up-mac.nix @@ -16,6 +16,7 @@ echo "Kill Redis server: pkill redis" >&2 # 'exec' allows for us to replace bash process with MariaDB + exec 3>&- exec ${redis}/bin/redis-server \ &> "$REDIS_CACHE_DIR"/logs '';