Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Support > Archive::Linux Servers

Archive::Linux Servers Archive area for Linux Servers's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-07-2002, 10:04 AM
TheClaus
Discordant
 
Join Date: Jan 2002
Location: Manteca, CA
Posts: 352
Default Cronjob for checking on world and zones

I am looking for a script that will check to see if world is running or not. If not then it restarts both the world and zones. If it is running then it waits til the next time. Something to throw in my cron.hourly. Can it be done and if so how. I am using the eqemud that is in a thread.

Thanks

TheClaus
Reply With Quote
  #2  
Old 06-07-2002, 12:27 PM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Hmmm, use daemon to start the processes, (use one of the other init.d startup scripts as a model). Then just write out a pid file to /var/run or something, have a cron.hourly job that ps -ef | grep pid#, if it doesnt find anything, have it run the init.d startup script.

Shouldnt be too hard to make. I'd make a shorter term cron though, I created a cron.tenminute job and stuck it into crontab so i could update my dns ip on a more regular basis. Waiting an hour for my ip to update is a bit long.

Anyways, just a suggestion. Ive thought about doing it for awhile, but I want to wait for things to stabilize out a bit before I start running a 24/7 server.
Reply With Quote
  #3  
Old 06-08-2002, 08:04 AM
bot403
Sarnak
 
Join Date: May 2002
Posts: 52
Default

IVE GOT THE SOLUTION

Check this thread out

http://www.eqemu.net/forums/showthre...;threadid=2473
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 10:04 PM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3