Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: script meant to act as daemon dies unexpectedly

by plaid (Chaplain)
on May 05, 2000 at 20:46 UTC ( [id://10393]=note: print w/replies, xml ) Need Help??


in reply to script meant to act as daemon dies unexpectedly

The first thought that pops up (which assumes a unix system; if not skip this part) is that you're hitting some sort of resource limit on the system. If you are running this from the command line, check 'limit cputime' in csh/tcsh or 'ulimit -t' in bash/ksh. Also, if the problem is occurring when you log out, you'll need to 'nohup' your program, to prevent it from being sent SIGHUP when you log out.. it's run like 'nohup ./perl_program args'.

If the above doesn't help, there are unfortunately several things that could be causing it outside of perl. As mentioned above, it could be MySQL with the problem. The best advice I can give is to do some verbose debugging in the script: write out to a logfile, check every return code from all system calls and MySQL calls, write success messages for every part that succeeds, etc. Try putting an END block in your perl code to trap the time that it's dying, and see if it's doing so at a regular interval.

Hope this helps.

  • Comment on Re: script meant to act as daemon dies unexpectedly

Replies are listed 'Best First'.
RE: Re: script meant to act as daemon dies unexpectedly
by Anonymous Monk on May 06, 2000 at 01:07 UTC
    That's definitely a possibility. On my personal linux machine, it never dies. On the web server, it is dying aproximately once every ten minutes or so. I will do some more research and see if that's the case, but that's what I am thinking. Thanks for the tips!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://10393]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-16 06:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found