Changeset 354


Ignore:
Timestamp:
May 13, 2008, 7:47:29 AM (16 years ago)
Author:
george
Message:

Přidáno zpoždění po restartu u restartovacího skriptu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • system/freeze_restart.php

    r351 r354  
    11<?php
    22$MangosUptimeInterval = 60; // Matches UpdateUptimeInterval in mangosd.conf [seconds]
    3 $RestartDeadTime = 120; // Maximum dead time [seconds]
     3$RestartDeadTime = 3 * 60; // Maximum dead time [seconds]
    44$LoopSleepTime = 10; // Checking period [seconds]
    55$MangosProcessName = '/a/mangos/bin/mangos-worldd';
     6$RestartDelay = 3 * 60;
    67
    78include('../global.php');
     
    2425    exec("ps -ef | grep '".$MangosProcessName."' | grep -v grep | awk '{print $2}' | xargs -i kill {}");
    2526    $Restarted = 1;  // Restart only once and wait for new good uptime
     27    echo('Start delay '.$RestartDelay."\n");
     28    Sleep($RestartDelay);
    2629  } else $Restarted = 0;
    2730  Sleep($LoopSleepTime);
Note: See TracChangeset for help on using the changeset viewer.