Hi,
it's about "Moodle staff, please give details!" line in Chat settings > Chat server daemon documentation page. Code chunks in that section are linux / unix. The line reading "Moodle staff, please give details!" should read:
kill -9 $( ps -ef | grep -v awk | awk '/php\s+chatd.php\s+--start/ {print $2}' )
The above oneliner assumes root access, any version of bash
/sh
shell and that grep
and awk
are installed and in your PATH
.
I don't have behind-the-scene access to a moodle site. Would someone who has please spare a few moments, verify and update the docs page?
Best & take care,
Darki
P. S. A longer version:
# check
ps -ef | grep -v awk | awk '/php\s+chatd.php\s+--start/'
# kill
kill -9 $( ps -ef | grep -v awk | awk '/php\s+chatd.php\s+--start/ {print $2}' )