- Timestamp:
- May 13, 2008, 7:47:29 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
system/freeze_restart.php
r351 r354 1 1 <?php 2 2 $MangosUptimeInterval = 60; // Matches UpdateUptimeInterval in mangosd.conf [seconds] 3 $RestartDeadTime = 120; // Maximum dead time [seconds]3 $RestartDeadTime = 3 * 60; // Maximum dead time [seconds] 4 4 $LoopSleepTime = 10; // Checking period [seconds] 5 5 $MangosProcessName = '/a/mangos/bin/mangos-worldd'; 6 $RestartDelay = 3 * 60; 6 7 7 8 include('../global.php'); … … 24 25 exec("ps -ef | grep '".$MangosProcessName."' | grep -v grep | awk '{print $2}' | xargs -i kill {}"); 25 26 $Restarted = 1; // Restart only once and wait for new good uptime 27 echo('Start delay '.$RestartDelay."\n"); 28 Sleep($RestartDelay); 26 29 } else $Restarted = 0; 27 30 Sleep($LoopSleepTime);
Note:
See TracChangeset
for help on using the changeset viewer.