def stop_mysql(self): with settings(hide('running', 'stdout')): result = local('service mysql stop') return result.return_code == 0, "stop_mysql"