I'd like to create linux daemon (in php), it will run an internal timer to manage my php scripts. (ie.: frontend cache update, data pre processing etc. these are existing services, now we run each script in bash with "nohup")
So my question is, how can i create single thread for each started process? At all possible do it with php?
pcntl_fork
php.net/manual/en/function.pcntl-fork.php