PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Pol on Linux - Startup Script

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096
Display posts from previous:   

Author Message
dante.regis



Joined: 29 Jul 2006
Posts: 1

PostPosted: Sat Jul 29, 2006 9:26 pm    Post subject: Pol on Linux - Startup Script Reply with quote

Hello people,

Does anyone have a script to put in rcn.d to make pol start and stop automatically with the computer? I am using debian sarge here.

If not, do you know how to stop pol on linux without using Ctrl + C or kill?

Thanks,

Dante

Author Message
Shinigami
POL Core Developer


Joined: 30 Jan 2006
Posts: 292
Location: Germany, Bavaria

PostPosted: Sun Jul 30, 2006 7:54 am    Post subject: Re: Pol on Linux - Startup Script Reply with quote

dante.regis wrote:
If not, do you know how to stop pol on linux without using Ctrl + C or kill?

it's the normal way to stop it

Shinigami

Author Message
Bytehawk



Joined: 03 Feb 2006
Posts: 56
Location: Germany, Franconia

PostPosted: Mon Jul 31, 2006 4:52 am    Post subject: Reply with quote

I don't really got what you want, but POL does defenitely automatically stop when your computer does Smile

Since I'm no Linux Guru I don't know of any other way then kill to stop the server by a shell script.
To shut down your server at a specific time every day, UO:ShutDown() might be helpful:

Code:
use os;
use uo;

program shut_down(who)

  // Check here, if it's time for shutdown

  BroadCast ("System shutdown in 3 minutes!");
  Sleep (180);
  SaveWorldState ();
  ShutDown ();

endprogram

We are stopping and restarting the server (not the computer) every morning after the maintenance using a cron job.

Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty