The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Gracefull Restart Every # Hours

Discussion in 'General Discussion' started by Gaming-Heaven, Jan 4, 2007.

  1. Gaming-Heaven

    Gaming-Heaven Member

    Joined:
    Jan 3, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Just wonderuing to keep my server up and running at its test is there a addon script that you can configure so that it restarts the server gracefully every # of hours
     
  2. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    you can put a command line in cron. but why in the world would you want to have your server rebooted every few hours? that simply means unjustified downtime.
     
  3. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    To keep your server up and running?

    If you need to reboot that often, you should fix the problems that lead you to
    restarting that often. I run very busy servers and most are up for many months
    at a time.
     
  4. Gaming-Heaven

    Gaming-Heaven Member

    Joined:
    Jan 3, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    well the memory and server load every 12 hours normally reaches tops and goes red alls i was thinking of having it restart the server every 12 hours to make sure it doesnt go down incase im not online to restart it myself.

    im not good at tweaking the server or anything i dont know anythin about that i just know how ro run it.

    If anyone is willing to look into the server for me then i would be willing to pay them.
     
  5. rpmws

    rpmws Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    1,824
    Likes Received:
    5
    Trophy Points:
    38
    Location:
    back woods of NC, USA

    why?

    root@goodbox [~]# uptime
    1:33pm up 251 days, 11:35, 3 users, load average: 1.06, 1.47, 1.67
    root@goodbox [~]#

    409 accounts (1200 zones). 156 mysql databases, 800GB/month BW

    what if that reboot decides to FSCK? ouch!!!
     
  6. celliott

    celliott Well-Known Member

    Joined:
    Jan 2, 2006
    Messages:
    460
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    United Kingdom
    You really need to look into the causes of high load and memory usage. Rebooting every few hours is a very poor excuse for a fix.

    If you are looking for someone to help with your server issues I reccomend www.servertune.com or www.configserver.com
     
Loading...

Share This Page