I'm trying to kill Sphinx on my server so that I can restart it. I tried using this command to find the PID:
ps ax | grep "searchd"
Which printed out this:
1483 ? S 00:00 /usr/local/bin/searchd --config /path/to/sphinx.conf
1484 ? Sl 20:51 /usr/local/bin/searchd --config /path/to/sphinx.conf
1523 ? S 0:00 /usr/local/bin/searchd --config /path/to/another/sphinx.conf
1524 ? Sl 20:35 /usr/local/bin/searchd --config /path/to/another/sphinx.conf
14174 pts/0 S+ 0:00 grep searchd
I'm confused why there are duplicate entries and can't figure out what the S
or Sl
columns mean, but I tried this:
kill pid 1483
kill pid 1484
But that outputted this error:
-bash: kill: pid: arguments must be process or job IDs
When I list the processes again, it looks like it did kill the processes (I ran the kill command for the first two), but the error makes me wonder what I did wrong?