Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Create a cron to restart CPanel if down?

Discussion in 'General Discussion' started by iHost.net.nz, Nov 18, 2004.

  1. iHost.net.nz

    iHost.net.nz Well-Known Member

    Joined:
    Aug 6, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    156
    How do I create a cron to restart CPanel if down via SSH?

    I editted /etc/crontab but it doesn't seem to work..

    Any suggestions? :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. djmerlyn

    djmerlyn Well-Known Member

    Joined:
    Aug 31, 2004
    Messages:
    201
    Likes Received:
    1
    Trophy Points:
    168
    is that really necessary? :confused:
     
  3. iHost.net.nz

    iHost.net.nz Well-Known Member

    Joined:
    Aug 6, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    156
    Yeah.. my CPanel crashes (everyday)..

    No ones gonna help me so theres only one thing i can do right now :(

    ... that is.. setup crons to restart it if it crashes.. :eek:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. djmerlyn

    djmerlyn Well-Known Member

    Joined:
    Aug 31, 2004
    Messages:
    201
    Likes Received:
    1
    Trophy Points:
    168
    hmm...I'm confused...

    If Cpanel crashes, will crons run? I suppose they would...but maybe it would be better to fix the crons that keep it running in the first place rather then make-shift a cron "patcH"

    but I would assume something stupid like

    #/bin/sh
    service cpanel start
    exit

    would probably suffice for a cron? I'm not going to spend time restarting my box to test a script for it for you...but, just doesn't seem like a logical solution to the root problem...

    hmmm...
     
    #4 djmerlyn, Nov 18, 2004
    Last edited: Nov 18, 2004
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice