Fixes the logon type to service login
Change-Id: Ie53ce192eff2069769b6bb5b56fc9d5058ec8156 Signed-off-by: Zhongcheng Lao <zhongchengl@vmware.com>
This commit is contained in:
parent
036aa1641b
commit
3d7f39d344
@ -159,7 +159,7 @@ class InitManager(object):
|
||||
LOG.info("Respawning current process with updated credentials.")
|
||||
token = osutils.create_user_logon_session(
|
||||
service_user, service_password, service_domain,
|
||||
logon_type=osutils.LOGON32_LOGON_BATCH)
|
||||
logon_type=osutils.LOGON32_LOGON_SERVICE)
|
||||
exit_code = osutils.execute_process_as_user(token, arguments)
|
||||
LOG.info("Process execution ended with exit code: %s", exit_code)
|
||||
sys.exit(exit_code)
|
||||
|
Loading…
Reference in New Issue
Block a user