Apache's automatic restart.

Discussion in 'Apache' started by mNova, Sep 10, 2008.

  1. #1
    Hi,

    A while back Apache (httpd) Kept failing every five minutes or so. So I got a friend to disable the automatic restart of it. Now that I've found and fixed the problem I need it to reboot when ever it fails but my friend isn't around.

    How would i go about re-enabling the automatic restart?

    Any help would be greatly appreciated.
     
    mNova, Sep 10, 2008 IP
  2. makao12a

    makao12a Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can add to cron jobs command

    service httpd restart
     
    makao12a, Sep 10, 2008 IP
  3. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #3
    or:

    /etc/init.d/httpd restart
    Code (markup):
    I suggest you find out while it fails (see logs) rather than working around that problem.

    Jay
     
    jayshah, Sep 11, 2008 IP