http://www.perlmonks.org?node_id=202069


in reply to How to run POE as a daemon

I can get this program to run by nohupping/backgrounding it, but I'd really like get this program to run as a daemon.

Your wording there makes me think that perhaps you don't understand hwat it is you are aking for.

Any program which when run, sits and waits for input can be considered a simple daemon. When you say that if you nohup and/or background it it works, i get the impressing tha the daemon is working just fine -- it's only when you log out that it dies -- which is true of a lot of things that can still be considered daemons.

I think the real question you want to be asking is "how can I make my daemon detach itself from its parent?"

This link in particular looks interesting.