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, 02:04 AM
Esildor
Hill Giant
 
Join Date: Feb 2010
Posts: 207
Default Auto Reboot?

Hi friens,

I've been looking around and haven't found anything thus far. Am wondering if anyone has open-sourced any of their set ups for automated server reboots i.e. everyday at like 6 AM or something like that.

Thanks for your time!

Esildor
Reply With Quote
  #2  
Old 06-05-2014, 05:05 AM
vsab's Avatar
vsab
Discordant
 
Join Date: Apr 2014
Location: United Kingdom
Posts: 276
Default

Why do you need to do this? If there's a problem in the server that means you need to do it, we can add it as a bug to look into and fix.

I don't run a public server so my server only ever runs for 10 minutes or so at a time!
Reply With Quote
  #3  
Old 06-05-2014, 05:12 AM
Esildor
Hill Giant
 
Join Date: Feb 2010
Posts: 207
Default

No idea what you mean.

There is no issue. I just know of servers out there(EZ comes to mind) that have an automated daily reboot. I personally have no idea how I would even go about setting that up. My post is simply asking if anyone has supplied something like this open source that I can look into.
Reply With Quote
  #4  
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
  #5  
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


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 09:01 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