in reply to Re: (tye)Re: Laziness and the Win32::Daemon
in thread Laziness and the Win32::Daemon

If you do decide to run it as a daemon, you should probably have it stop and restart itself after it does any real work. This frees the memory it allocated, which can end up growing without bound in too many cases.

To get the service to restart itself, I'd have a "-restart" command-line option so the service can do something like: system( qq(start $^X $0 -restart "$serviceName") )

        - tye (but my friends call me "Tye")