Today I found the package System_Daemon. It lets you run your (maybe never-ending) PHP daemon script in the background, generates Ubuntu start-stop files for init.d and is easy to install. It can be very useful if you want to write a server script with PHP, because you can’t or don’t want to use Pearl or C.
A logrotate script is also available.
Have a look at this blog for more information.