There is a queue service that uses PHP as a daemon, but finds that the daemon is often killed, looks up data and finds the following description
http://blog.csdn.net/newjueqi/article/details/8504325
He was in the shell when prompted Nohup success also need to press the terminal keyboard any key to return to the Shell Input Command window, and then through the shell input exit to exit the terminal; and I am to close the end of the program button every time after the successful execution of Nohup. So this time will break the corresponding session of the command, causing the nohup corresponding process to be notified of the need to shutdown together.
Only by doing this can the daemon be run correctly
[Article author] Zeng Jiansen
[Author Mailbox]zengjiansheng1@126.com
[Author qq]190678908
[Blog] Http://blog.csdn.net/newjueqi
Http://blog.sina.com.cn/h6k65