+ Reply to Thread
Results 1 to 4 of 4

Thread: Cronjob frequency

  1. #1
    Join Date
    Oct 2007
    Posts
    10

    Default Cronjob frequency

    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.

  2. #2
    Join Date
    Feb 2006
    Location
    North of Boston, MA
    Posts
    1,471

    Default

    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.
    redsox9 - Go Red Sox!!! 2004 and 2007 World Series Champions!
    Visit FenwayFanatics.com, home to Boston Red Sox baseball fans everywhere

  3. #3
    Join Date
    Feb 2006
    Posts
    599

    Default

    I have mine check every 4 hours and haven't had any complaints.

  4. #4
    Join Date
    Oct 2007
    Posts
    10

    Default

    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.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts