ctdl_lockfile(1);
init_sysdep(); // Initialize...
master_startup(); // Do non system dependent startup functions
- check_control(); // Check, sanitize, initialize the control record
+ check_control(); // Check/sanitize/initialize control record, fix user indexes
syslog(LOG_INFO, "main: upgrading modules"); // Run any upgrade entry points
upgrade_modules();
int exit_code = master_cleanup(exit_signal);
ctdl_lockfile(0);
+ if (restart_server) {
+ execv(argv[0], argv);
+ }
return(exit_code);
}