summaryrefslogtreecommitdiff
path: root/startup.sh
diff options
context:
space:
mode:
authorhc <hc@email.ch>2025-05-19 19:45:55 +0800
committerhc <hc@email.ch>2025-05-19 19:45:55 +0800
commit35321b6c3884491f4f559b3f4199e4563178f874 (patch)
tree41c7cb232d11fcb335e43964d87aa7fd759e69ab /startup.sh
Diffstat (limited to 'startup.sh')
-rw-r--r--startup.sh14
1 files changed, 14 insertions, 0 deletions
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