Pol on Linux - Startup Script

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 096.
Note: Core 096 is no longer officially supported.
Post Reply
dante.regis

Pol on Linux - Startup Script

Post by dante.regis »

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
Shinigami
Former Developer
Posts: 308
Joined: Mon Jan 30, 2006 9:28 am

Re: Pol on Linux - Startup Script

Post by Shinigami »

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
Bytehawk
Apprentice Poster
Posts: 56
Joined: Fri Feb 03, 2006 2:25 am

Post by Bytehawk »

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: Select all

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 Reply