Skip to content

Instantly share code, notes, and snippets.

@serverok
Created January 5, 2023 04:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
whmapi1 configureservice service=cpsrvd enabled=1 monitored=0
whmapi1 configureservice service=mysql enabled=1 monitored=0
whmapi1 configureservice service=httpd enabled=1 monitored=0
/scripts/restartsrv_cpsrvd --stop
/scripts/restartsrv_mysql --stop
/scripts/restartsrv_httpd --stop
wget https://raw.githubusercontent.com/serverok/server-setup/master/benchmark/geekbench-5.sh
bash ./geekbench-5.sh
/scripts/restartsrv_cpsrvd --start
/scripts/restartsrv_mysql --start
/scripts/restartsrv_httpd --start
whmapi1 configureservice service=cpsrvd enabled=1 monitored=1
whmapi1 configureservice service=mysql enabled=1 monitored=1
whmapi1 configureservice service=httpd enabled=1 monitored=1
rm -f geekbench-5.sh
@serverok
Copy link
Author

serverok commented Jan 5, 2023

It will stop Apache, MySQL, and Cpanel, then run geekbench 5. Websites will be unavailable during the time benchmark is running, so servers won't be overloaded, giving you more accurate benchmark results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment