Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I've started a PHP daemon process via SSH with
php ./my-script.php --daemon
Now I want to quit this process, but I can't.
It's still active in the foreground of my shell and I've hit CTRL + C multiple times, but to no avail.
CTRL + C
You can attempt to create a 2nd session on that server and find your original process running the php script ps ax | grep scriptname note the pid, and then kill it with kill -9 pid
ps ax | grep scriptname
kill -9 pid
Does suspend work CTRL-z
CTRL + Z
Required, but never shown