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!

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:
    156
    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:
    156
    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:
    156
    thx

    Hello Matthew, thanks for your reply.

    I have someone looking into it right now.

    Frank
     
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