Raised This Month: $ Target: $400
 0% 

Task Scheduler - by JustinHoMi


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Proach
Veteran Member
Join Date: Jan 2005
Location: The Netherlands
Old 03-04-2005 , 15:27  
Reply With Quote #11

Quote:
Originally Posted by tammar
Quote:
Originally Posted by Morpheus
Hi there!

I want a this to work so the plugin announce something like this:

"Server is restarting ..bla bla bla"

Then it should kill the server, so ex. Linux server is restarting whole server to prevent memory leak !

What should I do?

Cheers

Morpheus
Example: I want to restart the server every day at 03:00 am.

I placed to amxx.cfg following to shutdown the server:

Code:
amx_task 2:55 "amx_csay yellow Server is going down in 5 minutes" tr
amx_task 2:59 "amx_csay yellow Server is going down in 1 minute" tr
amx_task 3:00 "amx_rcon quit" tr
To start it again, there is no other way (I guess) than setting up a cron job. The crontab line to start the server at 3:01 would look like this:

Code:
1 3 * * * <commandline used to start the server>
If server shutdown fails and cron tries to start another server, the new server won't start because it's port will be still in use. So there is no risk of having too many DS only because server shutdown failed.

Hope it helps,

T.
I dont get it .. why using a conjob if you only want the server to restart?

you can use amx_rcon restart instead of quit command?
Proach is offline
Send a message via ICQ to Proach
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode