def restart_service(svc_name):
  result = False
  try:
    output = subprocess.check_output(["/usr/sbin/service", svc_name, "restart"])
    print "restarting service - %s" % svc_name
  except:
    print "Exception when restarting service [%s] status" % svc_name
    raise
  return
dataset/ETHPy150Open wcannon/saltconf2015/archived/s3_bucket_contents_solution_2/aws_scripts/restart_bc_dns.py/restart_service/original