X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fserver_main.c;h=68af7888e9ef221011eb88f6d523d2736d6a6ac6;hb=6d051cee6f669b6ecd950e933a95644f3cf097ea;hp=8c4f6374184ef380a508810eebe3d4bb934b2704;hpb=27014176ee36ef29b80da016f3fd5772189f8377;p=citadel.git diff --git a/citadel/server_main.c b/citadel/server_main.c index 8c4f63741..68af7888e 100644 --- a/citadel/server_main.c +++ b/citadel/server_main.c @@ -1,7 +1,7 @@ /* * citserver's main() function lives here. * - * Copyright (c) 1987-2019 by the citadel.org team + * Copyright (c) 1987-2020 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. @@ -213,7 +213,7 @@ int main(int argc, char **argv) syslog(LOG_INFO, " "); syslog(LOG_INFO, "*** Citadel server engine ***\n"); syslog(LOG_INFO, "Version %d (build %s) ***", REV_LEVEL, svn_revision()); - syslog(LOG_INFO, "Copyright (C) 1987-2019 by the Citadel development team."); + syslog(LOG_INFO, "Copyright (C) 1987-2020 by the Citadel development team."); syslog(LOG_INFO, " "); syslog(LOG_INFO, "This program is open source software: you can redistribute it and/or"); syslog(LOG_INFO, "modify it under the terms of the GNU General Public License, version 3."); @@ -252,7 +252,7 @@ int main(int argc, char **argv) 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(); @@ -358,5 +358,8 @@ int main(int argc, char **argv) int exit_code = master_cleanup(exit_signal); ctdl_lockfile(0); + if (restart_server) { + execv(argv[0], argv); + } return(exit_code); }