Shutting down after a set period of time.

Place for people to discuss public servers, and also for admins to lay out the details of their servers
Post Reply
User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:

Shutting down after a set period of time.

Post by Spazzy McGee » Tue Feb 07, 2006 6:01 pm

how do i set the server to shut down after a set period of time.

at the moment i have

Code: Select all

-time 30
-g
to test, but when it counts down from 00:30 to 00:00, like it should - but it dosn't shutdown the server. it just stays at 0:00. is there another command for shutting down after the game? i thought it was -g?
"Life is what happens to you while you're busy making other plans." - John Lennon

User avatar
The Knights Who Say Ni
Private First Class
Private First Class
Posts: 556
Joined: Mon Sep 26, 2005 7:21 pm
Location: Uplyme, England
Contact:

Post by The Knights Who Say Ni » Tue Feb 07, 2006 7:01 pm

it doesnt shut donw the server it dosent allow any one to connect i think...
Image
Sig Made By AlliedArmour

TGPH

JPT
Private First Class
Private First Class
Posts: 260
Joined: Tue Nov 29, 2005 1:21 pm
Location: Germany

Post by JPT » Tue Feb 07, 2006 7:14 pm

Code: Select all

-time 30
is just a time limit for the game. After the countdown is on 0, the game is over. Nobody will be able to spawn and play.

User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:

Post by Spazzy McGee » Tue Feb 07, 2006 7:49 pm

how do you shut down the server after a game has expired then?

i'm sure there is a way to do it... for example silvercat?
or am i going to just have to make a program which logs in to bzadmin and shuts down manually?
"Life is what happens to you while you're busy making other plans." - John Lennon

JPT
Private First Class
Private First Class
Posts: 260
Joined: Tue Nov 29, 2005 1:21 pm
Location: Germany

Post by JPT » Tue Feb 07, 2006 7:57 pm

It could be necessary to write a simple skript, which shuts down the server after the game is over.
I think you should ask silverfox directly.

User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny » Tue Feb 07, 2006 8:01 pm

this worked for me: no script needed.

-g

time 2000


try adding the -g over the time....just a thought.... becuase that is right out of my rotation conf (s).

User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:

Post by Spazzy McGee » Tue Feb 07, 2006 8:04 pm

hmmm..... could be that i suppose. I don't haave the -time in my conf, it is added in the command line, so i'll add it to all the confs.

i have written an applescript rotation script you see....
"Life is what happens to you while you're busy making other plans." - John Lennon

temporal distraction
Sergeant
Sergeant
Posts: 250
Joined: Wed Jan 05, 2005 3:12 pm

Post by temporal distraction » Tue Feb 07, 2006 8:07 pm

Spazzy Mcgee wrote:hmmm..... could be that i suppose. I don't haave the -time in my conf, it is added in the command line, so i'll add it to all the confs.

i have written an applescript rotation script you see....
I'd appreciate a look at that applescript. Do you plan on releasing it?

User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:

Post by Spazzy McGee » Tue Feb 07, 2006 8:43 pm

well, it's got to work first :P

and it's very 'filepath intensive' you'll have to get the folders right, but otherwise that's fine. If i get it working i'll post it.
"Life is what happens to you while you're busy making other plans." - John Lennon

User avatar
khazhyk
Private First Class
Private First Class
Posts: 1400
Joined: Sun Feb 06, 2005 5:40 pm
Location: Somewhere over there.
Contact:

Post by khazhyk » Tue Feb 07, 2006 11:06 pm

everyone needs to leave the server for it to shut down i think- that's what happend for me.
Image

User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny » Tue Feb 07, 2006 11:09 pm

me1 wrote:everyone needs to leave the server for it to shut down i think- that's what happend for me.

nope, adding -g and -time 2000

that killed the server with ppl on it.

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5173
Joined: Fri Dec 13, 2002 4:11 am
Location: https://discord.gg/NN9uAvx
Contact:

Post by JeffM » Wed Feb 08, 2006 1:27 am

order of the options, or the if it's in config or command line should not matter. It's all merged by bzfs in the end.

User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny » Wed Feb 08, 2006 1:31 am

but yet it seems to.......

User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:

Post by Spazzy McGee » Wed Feb 08, 2006 6:39 pm

winxp, can you send me your whole conf?
"Life is what happens to you while you're busy making other plans." - John Lennon

User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny » Wed Feb 08, 2006 7:57 pm

kk, give me a while to find it. ( I have many confs....)

User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:

Post by Spazzy McGee » Sun Feb 12, 2006 2:17 pm

hmmmk...

it's still not working. I'm wondering is this the right behavior for the -g -time thing. Is it ment to shutdown the server after the time limit, or simply wait untill everyone leaves the server?

can someone please enlighten me as to what i'm doing wrong :) ?
"Life is what happens to you while you're busy making other plans." - John Lennon

User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny » Sun Feb 12, 2006 2:18 pm

I honestly have no idea what isn't working.

User avatar
The Knights Who Say Ni
Private First Class
Private First Class
Posts: 556
Joined: Mon Sep 26, 2005 7:21 pm
Location: Uplyme, England
Contact:

Post by The Knights Who Say Ni » Mon Feb 13, 2006 4:26 pm

i dont think - g actualy shuts it down (as in closes it) it just dosent start any more games after the time has run out thats what i thought...
Image
Sig Made By AlliedArmour

TGPH

User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny » Mon Feb 13, 2006 8:50 pm

maybe its becuase I am using Lddw's auto3 rotation app....

orange
Private First Class
Private First Class
Posts: 73
Joined: Thu Oct 02, 2003 2:02 am

Post by orange » Tue Feb 14, 2006 7:43 pm

Spazzy Mcgee wrote:hmmmk...

it's still not working. I'm wondering is this the right behavior for the -g -time thing. Is it ment to shutdown the server after the time limit, or simply wait untill everyone leaves the server?

can someone please enlighten me as to what i'm doing wrong :) ?
Where are you running this? There are some platforms where it does exactly what you said. Silvercat is running on bzflag.bz right now and without a patch, the game won't end.

Same config files as our normal host, but on bzflag.bz it doesn't work.

Post Reply