in reply to Perl daemon that runs another daemon

Oy, where to start . . .

qx// runs the command you specify synchronously, capturing the output. Presumably /etc/init.d/asterisk will fork off some other daemon and then exit. Since there's nothing else likely to be keeping the POE session alive after the start state routines it'll exit, and . . .

Know what? Forget that code. My brane is throbbing just from attempting to divine its intent. Start from scratch and describe what you're attempting to do. Don't presume any mechanism or particular modules for implementations. Step back and outline what the frell you're attempting to do. Then someone might be able to help.

Replies are listed 'Best First'.
Re^2: Perl daemon that runs another daemon
by guilherme.e.j (Initiate) on Nov 01, 2006 at 21:13 UTC
    I would like to do a daemon that listen in a specific port. This daemon will run commands come from client machines. I will develop a web application that will permit actions like start and stop, of several services (apache,mysql,asterisk...), so the application will connect in this daemon to run commands (/etc/init.d/mysql stop, for examplo). I dont know if it is clear...
    Thanks