Login   Register  
PHP Classes
elePHPant
Icontem

running from shell

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Daemon  >  All threads  >  running from shell  >  (Un) Subscribe thread alerts  
Subject:running from shell
Summary:Daemon stops when starting shell exits
Messages:1
Author:Yaron Tadmor
Date:2008-10-16 10:24:58
 

  1. running from shell   Reply  
Picture of Yaron Tadmor
Yaron Tadmor
2008-10-16 10:24:58
Hi,

I've based my daemon on this daemon class.
I run my daemon by opening a shell terminal and running the script through the command line. I see the main script exits and the child daemon goes about doing what it needs to do.

when I close the terminal the Daemon dies with it.

I tried redirecting stderr and stdout to /dev/null and that stopped the problem. Any ideas on why this doesn't happen automatically when the terminal is closed? Any ideas how to override this somehow?

Thanks
Yaron