Server commands

Ask questions and share info about GunGame 5

Server commands

Postby tnarocks » Wed Aug 18, 2010 12:02 am

Is there a line or something that i can put in one of the cfg files like the server.cfg to get the server to restart itself at like 5 in the morning? if so can someone post it. i would rather have the server automaticly restart itself then have to do it manual ever time steam comes out with a update
tnarocks

Corporal
Corporal
 
Posts: 315
Joined: Mon Jan 25, 2010 3:56 pm
Location: Florida
Steam Friends Name: {TAG}TNA ROCKS(ENGAGED)

Postby XE_ManUp » Wed Aug 18, 2010 5:54 am

I know that EventScripts includes a script called "crontab" which you can es_load.

See below for specifics:

http://www.eventscripts.com/pages/Crontab
XE_ManUp

Site Admin
Site Admin
 
Posts: 662
Joined: Sat Sep 06, 2008 3:36 am

Postby tnarocks » Wed Aug 18, 2010 11:27 am

so what would be the command that i would have to put in? im lost..
tnarocks

Corporal
Corporal
 
Posts: 315
Joined: Mon Jan 25, 2010 3:56 pm
Location: Florida
Steam Friends Name: {TAG}TNA ROCKS(ENGAGED)

Postby IPS TOONCES » Wed Aug 18, 2010 10:21 pm

I believe one would need to edit the crontab config and add the line "es_load crontab" to your autoexec or server config files.
IPS TOONCES

Beta Tester
Beta Tester
 
Posts: 85
Joined: Sat Oct 04, 2008 12:34 am
Location: Chico, CA
Steam Friends Name: GENERAL-TOONCES

Postby tnarocks » Thu Aug 19, 2010 8:43 pm

ok but what if i wanted to have it restart at like 5 in the morning every day how would i put in that command
tnarocks

Corporal
Corporal
 
Posts: 315
Joined: Mon Jan 25, 2010 3:56 pm
Location: Florida
Steam Friends Name: {TAG}TNA ROCKS(ENGAGED)

Postby IPS TOONCES » Fri Aug 20, 2010 1:11 am

i've never used crontab before but I would assume you edit the crontab config file in your eventscripts folder
IPS TOONCES

Beta Tester
Beta Tester
 
Posts: 85
Joined: Sat Oct 04, 2008 12:34 am
Location: Chico, CA
Steam Friends Name: GENERAL-TOONCES

Postby XE_ManUp » Fri Aug 20, 2010 1:20 am

Well, I think you load crontab in the autoexec then you issues the crontab command from there as well. When I have more time, I can research it.
XE_ManUp

Site Admin
Site Admin
 
Posts: 662
Joined: Sat Sep 06, 2008 3:36 am

Postby IPS TOONCES » Fri Aug 20, 2010 5:03 am

thats more likely :D
IPS TOONCES

Beta Tester
Beta Tester
 
Posts: 85
Joined: Sat Oct 04, 2008 12:34 am
Location: Chico, CA
Steam Friends Name: GENERAL-TOONCES



Return to General Discussion

Who is online

Users browsing this forum: No registered users and 42 guests