diff --git a/controls/mysql_conf.rb b/controls/mysql_conf.rb index a8648fb..9f7bea7 100644 --- a/controls/mysql_conf.rb +++ b/controls/mysql_conf.rb @@ -67,7 +67,7 @@ control 'mysql-conf-02' do impact 0.5 title 'only one instance of mysql should run on a server' - describe command('ps aux | grep mysqld | egrep -v "grep|mysqld_safe|logger" | wc -l') do + describe command("pgrep -x -c #{service_name}") do its(:stdout) { should match(/^1$/) } end end