예제 #1
0
def service_setup(register_service, svc_user, svc_password):
  from ambari_windows_service import svcsetup

  svc_user_setup = svc_user if svc_user.upper() != "NT AUTHORITY\\SYSTEM" else None

  result = svcsetup(register_service, svc_user_setup, svc_password)
  if result == 0:
    write_property(NR_USER_PROPERTY, svc_user)
예제 #2
0
def service_setup(register_service, svc_user, svc_password):
    from ambari_windows_service import svcsetup

    result = svcsetup(register_service, svc_user, svc_password)
    if result == 0:
        write_property(NR_USER_PROPERTY, svc_user)
예제 #3
0
def winsetup(options):
  from ambari_windows_service import svcsetup

  setup(options)
  svcsetup()
예제 #4
0
def winsetup(options):
  from ambari_windows_service import svcsetup

  setup(options)
  svcsetup()