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.

need help wit autostart a script/file

Discussion in 'General Discussion' started by liquidcherry, Nov 27, 2006.

  1. liquidcherry

    liquidcherry Well-Known Member

    Joined:
    Jan 20, 2004
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Hello all,

    I have a custom made php script what is run by a cron job....everytime when i have to restart my server i have to manually, not "automagically" (hello cpanel :) ) restart my script/cron.

    Is the a way to do that at the start level?

    Regards

    Frank
     
  2. matthewdavis

    matthewdavis Well-Known Member

    Joined:
    Jun 26, 2003
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    NC, USA
    How are you calling this script? Are you running it using the php CLI? Is your script something like this (I hope)?

    Code:
    #!/bin/bash
    /usr/local/bin/php /path/to/script
    
     
  3. liquidcherry

    liquidcherry Well-Known Member

    Joined:
    Jan 20, 2004
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    thx

    Hello Matthew, thanks for your reply.

    I have someone looking into it right now.

    Frank
     
Loading...

Share This Page