It is currently Wed Oct 15, 2008 11:15 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Pol on Linux - Startup Script
PostPosted: Sat Jul 29, 2006 5:26 pm 
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


Top
  
 
 Post subject: Re: Pol on Linux - Startup Script
PostPosted: Sun Jul 30, 2006 3:54 am 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 9:28 am
Posts: 292
Location: Germany, Bavaria
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 31, 2006 12:52 am 
Offline
User avatar

Joined: Fri Feb 03, 2006 2:25 am
Posts: 56
Location: Germany, Franconia
I don't really got what you want, but POL does defenitely automatically stop when your computer does :)

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.

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl