Skip to content

Instantly share code, notes, and snippets.

@ryancbutler
Created November 9, 2021 15:20
Show Gist options
  • Save ryancbutler/a8afed412d6c3e431bedbfb75063be33 to your computer and use it in GitHub Desktop.
Save ryancbutler/a8afed412d6c3e431bedbfb75063be33 to your computer and use it in GitHub Desktop.
#Grabs MaxClients from HTTPD.CONF
export MAXCLIENTS=$(grep "^MaxClients" /etc/httpd.conf | awk '{print $2}')
nsapimgr_wr.sh -ys maxclientForHttpdInternalService=$MAXCLIENTS
touch /nsconfig/rc.netscaler
chmod a+x /nsconfig/rc.netscaler
echo "nsapimgr_wr.sh -ys maxclientForHttpdInternalService=$MAXCLIENTS" >> /nsconfig/rc.netscaler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment