“... implements the Unix style of process creation, program execution, signal handling and process termination.” • http://sg2.php.net/pcntl • Example: http://sg2.php.net/manual/en/pcntl. example.php
And run this command: #!/usr/bin/php <?php # # MyAwesomeDaemon Starts the PHP-Queue runner for BlahDaemon # # chkconfig: - 91 91 # description: Runner for blah daemon. $ chkconfig --levels 235 BeanstalkSampleDaemon on