From 35321b6c3884491f4f559b3f4199e4563178f874 Mon Sep 17 00:00:00 2001 From: hc Date: Mon, 19 May 2025 19:45:55 +0800 Subject: hehe --- startup.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 startup.sh (limited to 'startup.sh') diff --git a/startup.sh b/startup.sh new file mode 100644 index 0000000..fa93bcf --- /dev/null +++ b/startup.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# Create necessary socket directory +mkdir -p /run/fcgiwrap + +# Start fcgiwrap +fcgiwrap -s unix:/run/fcgiwrap/fcgiwrap-nginx.sock & + +# Change ownership of socket +sleep 2 +chown nginx:nginx /run/fcgiwrap/fcgiwrap-nginx.sock + +# Start nginx in foreground +nginx -g 'daemon off;' \ No newline at end of file -- cgit v1.2.3-70-g09d2