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 - 2004, 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.879 2004/08/19 14:19:27 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.880 2004/08/23 11:26:09 mast 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:437:   #endif /* THREADS */    if (!exit_code || once_mode) {    // 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); + #if 0 +  // Disabled since it's lying when the server is shut down with a +  // SIGTERM or SIGINT to the start script (which include the stop +  // action of the init.d script).    catch {    if (exit_code && !once_mode)    report_notice("Restarting Roxen.\n");    else    report_notice("Shutting down Roxen.\n");    }; -  + #endif    roxenloader.real_exit( exit_code ); // Now we die...   }      private int _recurse;      // Shutdown Roxen   // exit_code = 0 True shutdown   // exit_code = -1 Restart   private void low_shutdown(int exit_code)   {