need help wit autostart a script/file

liquidcherry

Well-Known Member
Jan 20, 2004
63
0
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
 

matthewdavis

Well-Known Member
Jun 26, 2003
90
0
156
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