Dedicated Server Crontab restart?

Discussion in 'Apache' started by nkiegrea, Mar 9, 2007.

  1. #1
    Hello, I had to upgrade to a dedicated server and have a question..

    -- Do people have a scheduled reboot for their dedicated servers to refresh apache or is there and command where you can just restart the apache..

    if yes, how often do you restart your server and what is the command? ( I have plesk 8.0.1)

    if no, how long do you leave your servers up and running before rebooting?


    Any help on this would be greatly appreciated!

    Regards,
    Zack
     
    nkiegrea, Mar 9, 2007 IP
  2. nkiegrea

    nkiegrea Peon

    Messages:
    355
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can anyone help me on this situation?

    Thanks
     
    nkiegrea, Mar 10, 2007 IP
  3. fsmedia

    fsmedia Prominent Member

    Messages:
    5,163
    Likes Received:
    262
    Best Answers:
    0
    Trophy Points:
    390
    #3
    Why would you refresh apache?

    my server's been online for 152 days now,there's no reason to reboot unless you upgrade the kernel or hardware

    you shouldn't ever need to restart apache unless it starts to hang or cause problems...
     
    fsmedia, Mar 10, 2007 IP
    nkiegrea likes this.
  4. ThreeGuineaWatch

    ThreeGuineaWatch Well-Known Member

    Messages:
    1,489
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    140
    #4
    What do you mean by "refresh Apache" ?

    If it is a unix box then there is no need to reboot for everything you would in Windows-world. If you patch the kernel then you'll need to reboot - otherwise there's usually no need to reboot the box. I have several boxes receiving 1.25 million hits/day and they have been running solidly like that for the last ~120 days.

    If it's a Loonix box, then some distros their own way of handling service start ups etc. Something like this might work:

    $ service httpd restart
    Code (markup):
    Apache includes its own control script, apachectl. If using this (as you might on a BSD box), then you might use a command like:

    /usr/local/sbin/apachectl graceful
    Code (markup):
    this will restart Apache while honouring surrent connection requests.
     
    ThreeGuineaWatch, Mar 10, 2007 IP
    nkiegrea likes this.
  5. nkiegrea

    nkiegrea Peon

    Messages:
    355
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well it is my first dedicated server and didn't know if it would be a good idea to restart the server.. For example if I leave my pc computer on for a couple of days, a restart always speeds everything back up.. just wondering if it was the same for the dedicated server..

    Thanks for the help.

    Regards,
    Zack
     
    nkiegrea, Mar 13, 2007 IP
  6. fallen

    fallen Well-Known Member

    Messages:
    162
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    118
    #6
    Hello,

    Windows - needs to be restarted from time to time
    Linux - only if hardware or kernel updates.

    regards,
    Fallen
     
    fallen, Mar 14, 2007 IP
  7. WiredTree Zac

    WiredTree Zac Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yes, just to echo what others have said, don't restart it unless you have a reason to.
     
    WiredTree Zac, Mar 14, 2007 IP