1

I have two PHP scripts that I need to start on boot. I have a CentOS powered VPS, and I normally use the following command to start the scripts.

screen php scriptname.php

However, if the server crashes, how can I have the scripts start automatically on boot?

Thanks.

1 Answer 1

2

Add your command to /etc/rc.d/rc.local

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .