Skip to content

Instantly share code, notes, and snippets.

@rwjblue
Created February 1, 2018 00:10
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 rwjblue/65aa8e90f3e49d6e7a716f1d612e3336 to your computer and use it in GitHub Desktop.
Save rwjblue/65aa8e90f3e49d6e7a716f1d612e3336 to your computer and use it in GitHub Desktop.
Stop random services before starting benchmarks on RHEL7...
#!/usr/bin/bash
sudo service yum-cron stop
sudo service cfengine3 stop
sudo service osad stop
sudo service rhnsd stop
# execute the arguments as a command
$*
sudo service yum-cron start
sudo service cfengine3 start
sudo service osad start
sudo service rhnsd start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment