def new_service(name, restart=True):
 out = __mgmt(name, 'service', 'new')
 if restart:
  if (out == 'success'):
   return __firewall_cmd('--reload')
 return out

def new_service ( name , restart = True ) : out = __mgmt ( name , 'service' , 'new' ) if restart : if ( out == 'success' ) : return __firewall_cmd ( '--reload' ) return out
add a new service cli example: .