Skip to content

Instantly share code, notes, and snippets.

@craffate
Created August 26, 2022 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craffate/cce781cd2f5f23ae9189f49c722cceef to your computer and use it in GitHub Desktop.
Save craffate/cce781cd2f5f23ae9189f49c722cceef to your computer and use it in GitHub Desktop.
FastCGI server status script
#!/bin/sh
echo 'Content-Type: text/plain'
echo ''
echo -n "Kernel:\t\t\t"; uname -sr
echo -n "Uptime:\t\t\t"; uptime -p
echo "Gateway interface:\t$GATEWAY_INTERFACE\nServer software:\t$SERVER_SOFTWARE\nServer protocol:\t$SERVER_PROTOCOL\nServer address:\t\t$SERVER_ADDR\nServer port:\t\t$SERVER_PORT\nServer name:\t\t$SERVER_NAME"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment