Server Restart... but does'nt.

For questions relating to POL scripting (not necessarily related to WoD)

Moderators: Siobhan, Sebastian, Drocket

Server Restart... but does'nt.

Postby Grae on Fri Aug 08, 2003 9:48 am

Hiya,

First off I decided to leave the server up and running over night, to give the spawners a good chance to spawn the world. However when I arose in the morning the server was shut down, at first I thought there was a problem, so I checked the logs and nothing. This happened a few times, so I figured I'll stay ingame and work on decorations and see what happens. After about 30Hrs uptime, I get t a message "Server Restart in 10 mins" then 5 mins and 3 mins and so on, till it counted the last few seconds and shut down. So I waited to see what else would happen (would it actually restart itself), unfortunatly it did'nt, I had to manually start it again. And this seems to do this every 30Hrs or so, but does'nt restart, which is a problem say in the early hours of the morning when no-one is around to restart. Which brings me to my question, can this be disabled? if so how? - Or better yet is there a script or some modification I can make so it will restart itself after it shuts down (supposed restart)?

Any advice/pointers would be greatly appreciated.

Oops! one more question has come to light as I wrote this. My youngest is mucking around in-game, and got some enchanted bones (black ones). She accidently double clicked on the bones in her pack and they created a tame skeleton, is this suppose to happen? or is this a necro thing? She has 0.0% in necromancy skill, so I can't figure out why or how it came about.

Thanks in advance.

Peace Out.
Grae
Sr. Newbie
 
Posts: 25
Joined: Sat Aug 02, 2003 5:56 am

Postby Adonis on Fri Aug 08, 2003 9:51 am

Hail Grae
I cant answer the first but the second part
is yes, anyone can do it. The stronger you are in the
skill the longer they stay for you.
Good Luck on the other
:)
Adonis
Regular Poster
 
Posts: 134
Joined: Sun Jul 06, 2003 7:45 am
Location: Solo Uno

Postby Tel'Imoen on Fri Aug 08, 2003 9:56 am

Drocket made a batch file to start POL after it has shut down after "restarting". Search the forum and you should be able to find it. To turn restarts off, simply change line 9 in pkg\world\saver\shutdowntimer.src from 30 to 0, and recompile.

Yes, enchanted bones are supposed to do that, and I don't believe that necromancy (or any other skill) plays a part. However, I might be wrong about that, so check the script first.
Tel'Imoen
Jr. Oldbie
 
Posts: 214
Joined: Wed Oct 09, 2002 7:42 am

Postby Grae on Fri Aug 08, 2003 9:59 am

Thank You both very kindly.
Grae
Sr. Newbie
 
Posts: 25
Joined: Sat Aug 02, 2003 5:56 am

Postby Grae on Fri Aug 08, 2003 10:45 am

Tel'Imoen wrote:Drocket made a batch file to start POL after it has shut down after "restarting". Search the forum and you should be able to find it.


Would this be the one (below) you are talking about?

I have searched the entire WoD forum, then I searched Drockets Website and this is all I could find (I think it is, but would like to be certain) :-

Q: How can I make the server automatically restart?
For Windows 9X (may also work with W2k and XP):
Create a file in the POL directory (call it startpol.bat, or whatever you want) and copy the following into it:


@echo off
:begin
cls
choice /n /c:12 /t:1,15 Press 1 to start POL, 2 to cancel%1
if errorlevel == 2 goto end
if errorlevel == 1 goto runpol
goto end

:runpol
pol.exe
goto begin

:end
cls
echo Finished


Use this new file to start POL.

Like I said, I think it is the one you are referring too, but unfortunatly it does'nt work for me. :|

Thanks.
Last edited by Grae on Fri Aug 08, 2003 10:57 am, edited 1 time in total.
Grae
Sr. Newbie
 
Posts: 25
Joined: Sat Aug 02, 2003 5:56 am

Postby Tel'Imoen on Fri Aug 08, 2003 10:56 am

Yep, that's the one :)
Tel'Imoen
Jr. Oldbie
 
Posts: 214
Joined: Wed Oct 09, 2002 7:42 am

Postby SDonald on Fri Aug 08, 2003 11:43 am

The bit you are probably missing is choice.com

I found it on an old dusty DOS6.2 set of diskettes. It used to be part of DOS and basically lets you choose options in the batch file. In this case start or exit. If no keyboard input for a short time, then run the default. (you can follow that logic on the line starting with choice /n etc.)
If you find it, put it in the same directory as the batch file, (ie where pol.exe is)

If you can't find choice.com, then just use this modified batch file. Call it something like runpol.bat

Code: Select all
@echo off
:begin
cls
pol.exe
goto begin


When you doubleclick it, it will simply restart pol when it exits via the autoshutdown timer every 31 hours.

Regards,
Stephen Donald.
SDonald
Regular Poster
 
Posts: 102
Joined: Fri Oct 11, 2002 7:47 am
Location: Australia

Postby Grae on Sat Aug 09, 2003 2:31 am

Thanks Stephen, I knew there was a reason I kept my old DOS disks.

Again thanks heaps, to everyone.

In case anyone else wants it I have zipped Drockets startpol.bat and the choice.com file from DOS6.22 together.

<a href="http://members.optushome.com.au/graygous/startpol.zip" class="postlink">startpol.zip</a>

***Remember to start the server using the Startpol.bat file, not POL.exe

Peace Out.
Grae
Sr. Newbie
 
Posts: 25
Joined: Sat Aug 02, 2003 5:56 am

Postby penticrack on Tue Sep 14, 2004 10:24 pm

k , and now the restartscript for the linux users? :)
penticrack
Newbie
 
Posts: 5
Joined: Tue Sep 14, 2004 9:40 pm

Postby Sareth on Tue Sep 14, 2004 10:54 pm

penticrack wrote:k , and now the restartscript for the linux users? :)


Actually I have done it before, its just a pain. You have to have a cron task running that does a ps -?? and redirects it to a file, doing a search for the pol string in the list of processes. then you check if the file is empty, and if it is, it means pol isnt running, therefore it needs to be restarted. I had this script running every 10-15 minutes to make sure the process was running. Its a lot more complicated than that, but that is the barebones on making it work. Each script is a bit different depending on unix version.
Sareth
Seer
 
Posts: 20
Joined: Tue May 04, 2004 2:50 am


Return to Scripting Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron