@utils.arg('host', metavar='<hostname>', help=_('Name of host.'))
@utils.arg('binary', metavar='<binary>', help=_('Service binary.'))
@utils.arg('--reason', metavar='<reason>', help=_('Reason for disabling service.'))
def do_service_disable(cs, args):
 if args.reason:
  result = cs.services.disable_log_reason(args.host, args.binary, args.reason)
  utils.print_list([result], ['Host', 'Binary', 'Status', 'Disabled Reason'])
 else:
  result = cs.services.disable(args.host, args.binary)
  utils.print_list([result], ['Host', 'Binary', 'Status'])

@ utils . arg ( 'host' , metavar = '<hostname>' , help = _ ( 'Name of host.' ) ) @ utils . arg ( 'binary' , metavar = '<binary>' , help = _ ( 'Service binary.' ) ) @ utils . arg ( '--reason' , metavar = '<reason>' , help = _ ( 'Reason for disabling service.' ) ) def do_service_disable ( cs , args ) : if args . reason : result = cs . services . disable_log_reason ( args . host , args . binary , args . reason ) utils . print_list ( [ result ] , [ 'Host' , 'Binary' , 'Status' , 'Disabled Reason' ] ) else : result = cs . services . disable ( args . host , args . binary ) utils . print_list ( [ result ] , [ 'Host' , 'Binary' , 'Status' ] )
disable the service .