Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.863 2004/02/16 13:41:46 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.864 2004/03/09 16:04:31 grubba Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:426:    configurations->stop(1);   }      // Function that actually shuts down Roxen. (see low_shutdown).   private void really_low_shutdown(int exit_code)   {    // Die nicely. Catch for paranoia reasons   #ifdef THREADS    catch (stop_handler_threads());   #endif /* THREADS */ +  if (!exit_code) { +  // We're shutting down; Attempt to take mysqld with us. +  catch { report_notice("Shutting down MySQL.\n"); }; +  catch { +  Sql.sql db = connect_to_my_mysql(0, "mysql"); +  db->shutdown(); +  }; +  }    destruct (cache);    catch {   #if 0    if (exit_code)    report_notice("Restarting Roxen.\n");    else    report_notice("Shutting down Roxen.\n");   #else    report_notice("Restarting or shutting down Roxen.\n");   #endif