Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.