php daemon
| From: | Jon Hill | Date: | Mon, 24 Nov 2003 05:38:19 +0000 |
| Subject: | php daemon | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170723@lists.php.net to get a copy of this message | ||
I have just been trying to work out the behaviour of running a php programm
from BASH.
If i execute
./my_program.php >> /var/log/mylog 2>&1 &
and then terminate the controlling terminal I get a background process which
has no controlling terminal, a parent process id of 1 and the process
becomes a session leader and process group leader. Everything looks in order
as far as this being a proper daemon. So, my question is, is this all
correct and the same as running a daemon in say C? Just opening a discussion
really to help in my education.
regards
Jon