Created
February 1, 2018 00:10
-
-
Save rwjblue/65aa8e90f3e49d6e7a716f1d612e3336 to your computer and use it in GitHub Desktop.
Stop random services before starting benchmarks on RHEL7...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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