I found the solution! This is my batch file:
#!/bin/bash
cd /var/www/moodle/mod/chat/ && /usr/bin/php chatd.php --start -l /var/log/chatd.log > /dev/null &
I found the solution! This is my batch file:
#!/bin/bash
cd /var/www/moodle/mod/chat/ && /usr/bin/php chatd.php --start -l /var/log/chatd.log > /dev/null &