Thanks for the code! I had been tinkering about with putting something together for a script which I needed to make a daemon out of. The script worked perfectly, so I did NOT want to pull it apart and split it up and such -- it simply needed to become a background process.
I got it working; I got it doing the fork, etc. But the "complex" part of checking to see if it is running, starting it, stopping it, etc, etc, was all becoming daunting. Yes, I could keep hacking away at it, and I'd have it done. But why? I just KNEW there had to be a better way!!!
Thanks to this one example, In less than an hour I replaced code I had spent days working on and testing, and am virtually finished with the project!
The only problem I have is I can only ++ this one time!
Lee Crites
lee@critesclan.com
In reply to Re: Practical Proc::Daemon example
by lee_crites
in thread Practical Proc::Daemon example
by jellisii2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |