Skip to content

Instantly share code, notes, and snippets.

@serverok
Created January 5, 2023 04:51
Show Gist options
  • Save serverok/83d6f79fc47d0060c72538c066849950 to your computer and use it in GitHub Desktop.
Save serverok/83d6f79fc47d0060c72538c066849950 to your computer and use it in GitHub Desktop.
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