How to check if a php script is still running

前端 未结 13 2541
鱼传尺愫
鱼传尺愫 2020-12-15 12:02

I have a PHP script that listens on a queue. Theoretically, it\'s never supposed to die. Is there something to check if it\'s still running? Something like

13条回答
  •  爱一瞬间的悲伤
    2020-12-15 12:43

    If you have your hands on the script, you can just ask him to set a time value every X times in db, and then let a cron job check if that value is up to date.

提交回复
热议问题