def bounce_local(drain=False):
 if _TRAFFICCTL:
  cmd = _traffic_ctl('server', 'restart')
 else:
  cmd = _traffic_line('-b')
 if drain:
  cmd = '{0} {1}'.format(cmd, '--drain')
 log.debug('Running: %s', cmd)
 return _subprocess(cmd)

def bounce_local ( drain = False ) : if _TRAFFICCTL : cmd = _traffic_ctl ( 'server' , 'restart' ) else : cmd = _traffic_line ( '-b' ) if drain : cmd = '{0} {1}' . format ( cmd , '--drain' ) log . debug ( 'Running: %s' , cmd ) return _subprocess ( cmd )
bounce traffic server on the local node .