From 84a1f972cab8d7976919a65c7bc4e14a76d78d02 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 17 Feb 2022 22:50:20 +0530 Subject: bin: Allow for not starting redis. redis needs to be started and managed as a separate service. We create a flag NO_REDIS so that it can be so. If NO_REDIS is not defined, the present behavior of starting redis remains. Thus current use cases are not broken. * bin/genenetwork2: Allow for not starting redis with the NO_REDIS flag. --- bin/genenetwork2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/genenetwork2 b/bin/genenetwork2 index a6ba7241..36bf11a6 100755 --- a/bin/genenetwork2 +++ b/bin/genenetwork2 @@ -213,10 +213,12 @@ if [ "$1" = '-gunicorn-prod' ] ; then exit $? fi -echo "Starting the redis server:" -echo -n "dir $TMPDIR +if [ -z "$NO_REDIS" ] ; then + echo "Starting the redis server:" + echo -n "dir $TMPDIR dbfilename gn2.rdb " | redis-server - & +fi # Overrides for packages that are not yet public (currently r-auwerx) # export R_LIBS_SITE=$R_LIBS_SITE:$HOME/.Rlibs/das1i1pm54dj6lbdcsw5w0sdwhccyj1a-r-3.3.2/lib/R/lib -- cgit v1.2.3