centos 6.5 创建守护进程
cd/etc/init vim yii-queue.conf
编辑内容 author "syy" description "dm check queue" start on startup stop on shutdown respawn limit 10 5 console output exec /usr/bin/php /var/www/html/edc/yii queue/listen #script # cd /var/www/html/edc/ # exec ./yii queue/listen #end script
保存
:wq!
启动/停止
initctl start/stop yii-queue
查看状态
initctl status yii-queue