PDA

View Full Version : Cronjob frequency


Mr_Nickos_Jr
10-24-2007, 08:17 PM
Hello.

Situation: I installed a teamspeak server on our host. It will periodically shut down requiring us to restart it.

After some investigation I found a script that would check and see if it's down, and restart it automatically if so. This was set to run by cronjob via our cpanel every 5 minutes.

My question: How frequent is too frequent? I don't know much about what resources are required from a host for cronjobs.

redsox9
10-25-2007, 10:57 AM
My guess would be that, for a simple script to check whether or not another script is active and activate it if necessary, it should not be a drain on system resources, so long as it's not creating large residual files.

siguie
10-26-2007, 03:49 AM
I have mine check every 4 hours and haven't had any complaints. :)

Mr_Nickos_Jr
10-26-2007, 10:21 AM
Ours is set to every 10 minutes which is quite frequent. If our TS goes down, we want it back up asap.

Was just curious if that'd be an issue. All it does is checks if the .pid file is there (only there when ts is active). If it isn't, it activates TS. If it is, then nothing happens.

I'm guessing we should be fine, as it's been set that way a few days already. Was just curious.