in reply to Perl daemon exiting without warning

I think your analysis of the problem is incorrect. I think successfully daemonised a program that repeatedly tries to write to /temp.txt and fails for permission reasons.

Replies are listed 'Best First'.
Re^2: Perl daemon exiting without warning
by sktemkar (Initiate) on Feb 11, 2011 at 06:12 UTC
    There is permission for writing the file temp.txt. i debugged the daemon, it is exiting after the " open STDIN, '/dev/null' " statement.

      If you're saying it's exiting immediately after that open, I don't believe you. Did you perhaps trace the code by printing to STDOUT?

      I find it very unlikely that you have permission to create and write to /temp.txt (and that you intended to do so). Are you running as root?