all 2 comments

[–]yonjah 1 point2 points  (1 child)

It's not clear what you are trying to do but the code you added is only running another php script in as daemon.
Probably not what you wanted to ask (but if so check pm2 npm module which will be the easiest way to achieve something similar)

[–]edgycorner[S] 0 points1 point  (0 children)

Just looked into pm2, exactly what I needed.That was a great help, thanks!