Go Back   EQEmulator Home > EQEmulator Forums > General > General::Server Discussion

General::Server Discussion Discussion about emulator servers.
Do not post support topics here.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2014, 07:07 AM
Tabasco's Avatar
Tabasco
Discordant
 
Join Date: Sep 2009
Posts: 269
Default

The technique can vary from setup to setup so I'm not surprised there isn't a one-size-fits-all solution out there.

crontab -e
Code:
00  4     * * *   /usr/bin/php /opt/eqemu/server/doshutdown.php
10  4     * * *   /opt/eqemu/server/stopall && /root/cacheclean.sh && /opt/eqemu/server/startall &
doshutdown.php
Code:
<?php

//Server broadcast
$baseurl = "http://username:password@[localhost|servername|ip]:9080/worldshutdown.html";

$dext = "?time=600&interval=60";

$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_URL, $baseurl.$dext);
curl_exec($ch);
curl_close($ch);
?>
worldshutdown.html - put in the templates folder for the server's http interface
Code:
<?

$stime = $request->get("time", "600");
$sinterval = $request->get("interval", "60");

$EQW->WorldShutDown($stime, $sinterval);

?>
__________________
http://dungeoncrawl.us.to

Last edited by Tabasco; 06-05-2014 at 10:00 AM.. Reason: WorldShutDown is in the latest revision, I just didn't see it first thing in the morning.
Reply With Quote
  #2  
Old 06-06-2014, 10:20 AM
rencro
Hill Giant
 
Join Date: Sep 2008
Location: So. California
Posts: 219
Default

The AXClassic project has many of these. Here is a link to their linux scripts.

https://code.google.com/p/axclassic-...Flinux_scripts
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:32 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3