daemon_tutorial Basic example of how to handle unix signals in long running php script Usage: start script determinate it's pid eg. ps | grep php kill {pid} to send signal to script How to actually terminate script ? kill -9 {pid}