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.

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:
    6
    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? :)
     
  2. djmerlyn

    djmerlyn Well-Known Member

    Joined:
    Aug 31, 2004
    Messages:
    203
    Likes Received:
    1
    Trophy Points:
    16
    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:
    6
    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:
     
  4. djmerlyn

    djmerlyn Well-Known Member

    Joined:
    Aug 31, 2004
    Messages:
    203
    Likes Received:
    1
    Trophy Points:
    16
    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