Page 1 of 1
Pol on Linux - Startup Script
Posted: Sat Jul 29, 2006 5:26 pm
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
Re: Pol on Linux - Startup Script
Posted: Sun Jul 30, 2006 3:54 am
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
Posted: Mon Jul 31, 2006 12:52 am
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.