Raised This Month: $51 Target: $400
 12% 

Automated restart


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Heartless 1.0
Member
Join Date: Aug 2010
Old 08-29-2010 , 19:34   Automated restart
Reply With Quote #1

I want my srcds to automatically restart every day at 4:00am, how would i achieve this?
Heartless 1.0 is offline
nightrider
SourceMod Donor
Join Date: Dec 2008
Old 08-29-2010 , 21:45   Re: Automated restart
Reply With Quote #2

You could use an application called FireDaemon Pro
Run any 32-bit or 64-bit application as a Windows service
We use this on our dedicated server and you can setup FireDaemon Pro
to restart your server at your specified time.
It can also auto restart the service if the server should crash.
You can set the CPU affinity also + more
__________________
[SIGPIC][/SIGPIC] the pantless
I am the Night Rider!, I'm a fuel-injected suicide machine.
I am a rocker! I am a roller!, I am an out-of-controller!


nightrider is offline
Beankyu
New Member
Join Date: Aug 2010
Old 08-29-2010 , 22:25   Re: Automated restart
Reply With Quote #3

Thanks a lot for ur sharing.
I finf it very helpful.
__________________
Beankyu is offline
Heartless 1.0
Member
Join Date: Aug 2010
Old 08-30-2010 , 10:17   Re: Automated restart
Reply With Quote #4

Sorry i forgot to mention my server is running Ubuntu linux 9 64-bit.
Heartless 1.0 is offline
marianow
Senior Member
Join Date: Sep 2009
Location: in your mom pussy
Old 08-31-2010 , 07:00   Re: Automated restart
Reply With Quote #5

i use daemontools or monit to auto-reeboot aplicattion's if they die.

sorry 4 my bad english.
marianow is offline
marvel
BANNED
Join Date: Dec 2009
Old 08-31-2010 , 07:16   Re: Automated restart
Reply With Quote #6

As root or as the user starting the server type:

crontab -e

Then enter the following:

00 4 * * * /usr/bin/killall srcds_linux

or

00 4 * * * /usr/bin/killall srcds_i486 depending on the game.

This should work since the srcds_run script should start the server again. I didn't test it though.
marvel is offline
meecrob
Senior Member
Join Date: Jan 2010
Old 09-01-2010 , 03:50   Re: Automated restart
Reply With Quote #7

Here is a useful plugin which will automatically restart the server at 5 am everyday. It is not configurable, but it works.

http://forums.alliedmods.net/showthread.php?t=101132
__________________
meecrob is offline
Heartless 1.0
Member
Join Date: Aug 2010
Old 09-05-2010 , 12:56   Re: Automated restart
Reply With Quote #8

Quote:
Originally Posted by meecrob View Post
Here is a useful plugin which will automatically restart the server at 5 am everyday. It is not configurable, but it works.

http://forums.alliedmods.net/showthread.php?t=101132
That looks interesting, i'll try that out. Thanks.
Heartless 1.0 is offline
Heartless 1.0
Member
Join Date: Aug 2010
Old 10-06-2010 , 15:00   Re: Automated restart
Reply With Quote #9

Unfortunately that plugin doesn't work. It was exactly what i needed to ...
Heartless 1.0 is offline
NoS
Senior Member
Join Date: Nov 2006
Old 10-07-2010 , 11:44   Re: Automated restart
Reply With Quote #10

Quote:
Originally Posted by meecrob View Post
Here is a useful plugin which will automatically restart the server at 5 am everyday. It is not configurable, but it works.

http://forums.alliedmods.net/showthread.php?t=101132
Thats an easy fix, just change.

Code:
if(time == 0500)
to

Code:
if(time == 0400)
If you want it at 4:00.
NoS is offline
Reply



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 03:22.


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