create a service in Linux loop infinite and auto start if closed

Job ID: 33927684

Budget: $30 – $250 USD

I need create a service in Ubuntu Linux to run code php <?php ?>.
the service needs to run all the time, running the code when the service stops. also need to run when operating system auto startup (Ubuntu server)
Related categories: PHP Shell Script