diff options
Diffstat (limited to 'startup.sh')
| -rw-r--r-- | startup.sh | 14 |
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 |
