Comparison

util/startup.lua @ 8665:4b260a3f8b94

util.startup: Restore user switching
author Matthew Wild <mwild1@gmail.com>
date Thu, 22 Mar 2018 21:46:05 +0000
parent 8664:d49acc9a8da2
child 8666:57780ba1938f
comparison
equal deleted inserted replaced
8664:d49acc9a8da2 8665:4b260a3f8b94
482 end 482 end
483 483
484 -- prosodyctl only 484 -- prosodyctl only
485 function startup.prosodyctl() 485 function startup.prosodyctl()
486 startup.read_config(); 486 startup.read_config();
487 startup.init_global_state();
487 startup.chdir(); 488 startup.chdir();
489 startup.switch_user();
488 startup.check_dependencies(); 490 startup.check_dependencies();
489 startup.force_console_logging(); 491 startup.force_console_logging();
490 startup.init_global_state();
491 startup.init_logging(); 492 startup.init_logging();
492 startup.log_dependency_warnings(); 493 startup.log_dependency_warnings();
493 startup.check_unwriteable(); 494 startup.check_unwriteable();
494 startup.load_libraries(); 495 startup.load_libraries();
495 startup.init_global_protection(); 496 startup.init_global_protection();