This is a bit late, but the parent came up due to other comments, so I thought I'd chime in.
I tried Proc::Daemon, but it didn't work cross-OS, so I went with Proc::Background instead, which did what I wanted. I must admit that I spent a great deal of time using other distributions to turn things into a proper Windows service while on Windows, and changing up to Proc::Daemon when on Unix, but it was too much work.
This is a real-life, in use, frequently used example of Proc::Background that works on both Windows and Unix. Here is where I actually fork out.
At the time I wrote that code, I was testing forking-type code heavily, and I am still looking for the be-all, end-all, but to suit both OS types simultaneously isn't easy, by any stretch.
In reply to Re: Practical Proc::Daemon example
by stevieb
in thread Practical Proc::Daemon example
by jellisii2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |