From f376f8b6d36a10ed88d423cbcb14d5de9959b0ea Mon Sep 17 00:00:00 2001 From: onefang Date: Wed, 1 Sep 2021 16:03:26 +1000 Subject: Delay the web server startup for a few seconds. So both instances are not trying to create the .shini files. --- src/sledjchisl/sledjchisl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 8a686fa..4c6f5a2 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -8494,7 +8494,7 @@ Build the OpenSim. // TODO - remove this once we handle the fcgi stuff ourselves. // Make the FCGI socket world read / write, coz we can't set it to group www-data, since -G only works for root, and we ain't root. // TODO - BIG SECURITY HOLE??? - "bash -c 'export PATH=%s:$PATH; " + "bash -c 'export PATH=%s:$PATH; sleep 3;" // The sleep is so that both are not creating the .shini files at the same time. "spawn-fcgi -n -u %s -s %s/sledjchisl.socket -M 0666 -G www-data -- /usr/bin/valgrind --leak-check=full sledjchisl %s; " "cd %s; bash'" , -- cgit v1.1